getSelfOrNull

abstract suspend fun getSelfOrNull(): User?(source)

Requests the User this bot represents, returns null when the user isn't present.

Throws

if something went wrong while retrieving the user.