getGuildBan

open suspend fun getGuildBan(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

if something went wrong while retrieving the ban.

if the ban was null.