getGuildOrNull

suspend fun getGuildOrNull(): Guild?(source)

Requests to get the guild this event was triggered in, returns null if the Guild isn't present.

Throws

if anything went wrong during the request.