getGuildPreviewOrNull

suspend fun getGuildPreviewOrNull(guildId: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): GuildPreview?(source)

Requests to get the GuildPreview of a guild with the guildId through the strategy, returns null if the GuildPreview isn't present.

Throws

if anything went wrong during the request.