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
Favna17mo ago
you need MessageContent intent
xAfflict
xAfflict17mo ago
Ahh, that explains a lot. It works now. Thanks again!