bannable

if (target.bannable === false) return interaction.reply({ content: `I am unable to ban ${target.username}`, ephemeral: true })
if (target.bannable === false) return interaction.reply({ content: `I am unable to ban ${target.username}`, ephemeral: true })
this line is not working, it is giving back true when its false or i just am just missing what is wrong
2 Replies
d.js toolkit
d.js toolkit5mo ago
- 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! - Marked as resolved by OP
JollyJohn
JollyJohnOP5mo ago
const target = interaction.options.getUser('user'); does it need to be member? thats probs the issue Ok cool thanks
Want results from more Discord servers?
Add your server