getBanOrNull

open suspend fun getBanOrNull(userId: Snowflake): Ban?(source)

Requests to get the Ban of the User represented by the userId, returns null if the Ban isn't present.

Throws

if anything went wrong during the request.