getGuildBanOrNull

open suspend override fun getGuildBanOrNull(guildId: Snowflake, userId: Snowflake): Ban?(source)

Requests the Ban for the user the given userId in the Guild wit the given guildId, returns null when the ban isn't present.

Throws

RequestException

if something went wrong while retrieving the ban.