getPreviewOrNull

open suspend fun getPreviewOrNull(): GuildPreview?(source)

Returns the preview of this guild. The bot does not need to present in this guild for this to complete successfully. Returns null if the preview doesn't exist.

This property is not resolvable through cache and will always use the RestClient instead.

Throws

if the guild does not exist or is not public.