getGuildPreview

open suspend fun getGuildPreview(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.

Throws

if something went wrong during the request.

if the preview was not found.