This would delete messages if they had embeds with swears in them. It would also delete messages that are edited to contain swears. The edit step is important for embeds because sometimes Discord adds embeds to messages a few seconds after they are sent via the messageUpdate event.
This would delete messages if they had embeds with swears in them. It would also delete messages that are edited to contain swears. The edit step is important for embeds because sometimes Discord adds embeds to messages a few seconds after they are sent via the messageUpdate event.