#Read Messages
1 messages · Page 1 of 1 (latest)
The message and interaction events were renamed to messageCreate and interactionCreate respectively, to bring the library in line with Discord's naming conventions.
- client.on('message', message => { ... });
+ client.on('messageCreate', message => { ... });
- client.on('interaction', interaction => { ... });
+ client.on('interactionCreate', interaction => { ... });
^^
ty
And you need MessageContent and GuildMessages intents
where are they located?
In your client constructor
yeah I know but are they just called MessageContent or like GatewayIntentBits.Guilds
You can use an array of strings
[“Guilds”, “MessageContent”]
Or use the enums
oh
Like you do here
so easy 😄
GatewayIntentBits.MessageContent
If I do it like this [GatewayIntentBits.MessageContent, GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] it says: code: 'DisallowedIntents'
with this as well
Tag suggestion for @prime harness:
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
If you are using the GuildMembers, GuildPresences, or MessageContent intents, you need to enable them in the developer portal:
• Developer Portal > Your app > Bot > Privileged Gateway Intents