getBan

open suspend fun getBan(userId: Snowflake): Ban(source)

Requests to get the Ban of the User represented by the userId.

Throws

if anything went wrong during the request.

if the Ban wasn't present.