getGuildPreviewOrNull

open suspend override fun getGuildPreviewOrNull(guildId: Snowflake): GuildPreview?(source)

Requests the preview of the guild matching the guildId. If the bot is not in the guild, then the guild must be lurkable. Returns null if the preview was not found.

Throws

RequestException

if something went wrong during the request.