Idk why this happens
There's no error but the intention of the code is to send and embed when it detects a forbidden word. But don't works

7 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Do you have MessageContent intent?
I'll checek

yes
I edited a little the code:

In v14 for types you need to use enums.
ChannelType.GuildText
.
Btw why are you sending the alert to all text channels?