Test if user is banned

How can I test if a User is banned?
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Syjalo
Syjalo3y ago
await <Guild>.bans.fetch('id') Will throw an error if doesn't exist.
RichtigJoJo
RichtigJoJoOP3y ago
Thanks not working Its always true even if the user is not banned ok I have if(await interaction.guild.bans.fetch(user.id)) ... ok that means? yes what did I need to do my english is not the best ok

Did you find this page helpful?