#quastion

13 messages · Page 1 of 1 (latest)

primal fogBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

worn escarp
#

Show your code

chilly raptor
#
client.on('interactionCreate', async (interaction) => {
    if (interaction.isButton()) {
        if (interaction.customId == 'verify') {
            interaction.reply({ content: '  You got the role <@&1068589583132008511>', ephemeral: true })
            interaction.member.roles.add('1068589583132008511')
        }
    }
});
worn escarp
#

That code doesn't look v14, are you sure your discord.js version is 14.9.0?

chilly raptor
#

Ummm not sure

worn escarp
#

npm ls discord.js

#

Any errors?

chilly raptor
#

Nope

worn escarp
#

Then try placing a console log above everything in the interactionCreate callback and see it that shows

#

Try placing a console log above everything in the interactionCreate event to see if it's even listening to the event or not

fathom bluff
#

MessageEmbed is 13 EmbedBuilder is 14 are you using 2 packages across bots?

tall tiger
#

Then that’s the issue.