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
d.js toolkit
d.js toolkit2y ago
• 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.
Syjalo
Syjalo2y ago
Do you have MessageContent intent?
Ascensor Rural
Ascensor RuralOP2y ago
I'll checek
Ascensor Rural
Ascensor RuralOP2y ago
Ascensor Rural
Ascensor RuralOP2y ago
yes
Ascensor Rural
Ascensor RuralOP2y ago
I edited a little the code:
Syjalo
Syjalo2y ago
In v14 for types you need to use enums. ChannelType.GuildText. Btw why are you sending the alert to all text channels?
Want results from more Discord servers?
Add your server