Verification system with a button on an Embed
Hello, I'm trying to make a verifitcation system.
Here is my code:
The code should send an embed message with a button so people can take their member role by clicking on the button.
I'm getting the error:
Thanks for your help !
3 Replies
• 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.option.setName('salon')const channel = interaction.options.getChannel('channel');
<CommandInteractionOptionResolver>.getChannel() takes the name of the option to get the value of for its param
your channel option's name is salon, not channel
therefore it's returning null, since it was unable to resolve the value of a channel option named channelOh damn I didn't see that ! Thanks a lot