getBanOrNull

suspend fun getBanOrNull(): Ban?(source)

Requests to get the Ban entity this event represents.

Throws

if anything went wrong during the request.

if the ban wasn't present.