getGuildOrNull

suspend fun getGuildOrNull(): Guild?(source)

Requests to get the Guild of the invite. returns null if the guild isn't present, or if invite does not target a guild.

Throws

if anything went wrong during the request.