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?
Maybe try this intent for me it worked.
Discord.Intents.FLAGS.GUILD_INTEGRATIONS