Commands not responding to defaultPrefix

I've setup the defaultPrefix to "!":
const client: SapphireClient = new SapphireClient({
"intents": [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
"loadMessageCommandListeners": true,
"defaultPrefix": "!"
});
const client: SapphireClient = new SapphireClient({
"intents": [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
"loadMessageCommandListeners": true,
"defaultPrefix": "!"
});
For some reason though, the bot won't respond when I use that prefix. It only responds to the command when I mention it. Am I misunderstanding what the defaultPrefix option does?
Solution:
you need MessageContent intent
Jump to solution
2 Replies
Solution
Favna
Favna2y ago
you need MessageContent intent
xAfflict
xAfflictOP2y ago
Ahh, that explains a lot. It works now. Thanks again!
Want results from more Discord servers?
Add your server