Skip to content
Advertisement

Tag: discord-jda

Check if user is banned or not

I cant seem to figure out how to check if a user is already banned if tried this event.getGuild().retrieveBan(event.getUser() but you cant use an if statement with it Answer You should use the failure and success callbacks:

Discord JDA – Invalid Member List

I am creating a Discord bot and have encountered a strange problem. I need to go through each user on the server and perform a conditional action. But when receiving a list of all Members, it contains only me and the bot itself. If another person writes, then only me and the bot are still displayed. Answer I assume you’re

Advertisement