getGuildOrNull

suspend fun getGuildOrNull(): Guild?(source)

Requests to get the guild of this message, returns null if the Guild isn't present or this message wasn't made in a guild.

Throws

if anything went wrong during the request.