getGuildOrNull

suspend fun getGuildOrNull(): Guild?(source)

Requests to get this channel's Guild, returns null if the guild isn't present.

Throws

if something went wrong during the request.