getGuildOrNull

open suspend fun getGuildOrNull(): Guild?(source)

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

Throws

RequestException

if something went wrong during the request.