13 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!I don't understand where I went wrong
interaction.roles
is not a thing
did you mean interaction.member.roles
?anyway error
The same error?
show the console error
check footer
bro
oh sorry didnt see it
this is your ban.js code?
yeah mute code
error when executing a command
const permission = interaction.member.roles.cache.has('1221367123889094708'); try this
the way your are catching your command is weird, i dont use slash commands but I think you should catch the message.member.roles.cache instead of a interaction
check where are you calling your execute function
work
and also, how to make the option argument mandatory?
.addUserOption(option => option.setName('target').setDescription('The user'))
thishmm what is this supposed to do?
never used that option on embeds