'Discord.js: on('interactionCreate') not working but 'messageCreate' does work
I'm currently working on the commands of the bot and I can't seem to find the solution to my problem. When I run my
client.on('messageCreate', async interaction =>{
// somethingHappens
})
It works perfectly, but when I do
client.on('interactionCreate', async interaction =>{
// nothingHappens
})
This are my client Intents:
[Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.DIRECT_MESSAGES]
Am I missing something?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
