retrieveBanOrNull

Deprecated

Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.retrieveBanOrNull Replace: dev.freya02.botcommands.jda.ktx.retrieve.retrieveBanOrNull

Retrieves a Ban of the provided UserSnowflake, or null if the user is not banned.

Throws the same exceptions as Guild.retrieveBan, minus ErrorResponse.UNKNOWN_BAN.

See also