#[non_exhaustive]pub struct Sticker {
pub id: StickerId,
pub pack_id: Option<StickerPackId>,
pub name: CompactString,
pub description: Option<CompactString>,
pub tags: CompactString,
pub kind: StickerType,
pub format_type: StickerFormatType,
pub available: bool,
pub guild_id: Option<GuildId>,
pub user: Option<Box<User>>,
pub sort_value: Option<u32>,
}Expand description
A sticker that can be sent in messages.
discord.js counterpart: Sticker.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StickerIdThe sticker’s ID.
pack_id: Option<StickerPackId>For standard stickers, the pack the sticker belongs to.
name: CompactStringThe sticker’s name.
description: Option<CompactString>The sticker’s description.
Autocomplete/suggestion tags (up to 200 characters). Standard stickers use a comma-separated list of keywords, but that is only a convention; for guild stickers this is the name of a Unicode emoji.
kind: StickerTypeWhether this is a standard or a guild sticker.
format_type: StickerFormatTypeThe sticker’s file format.
available: boolWhether the guild sticker can be used; false when the guild lost the Server Boosts it
needs. true when Discord omits the field, as it does for standard stickers (D-055).
guild_id: Option<GuildId>The guild that owns the sticker.
user: Option<Box<User>>Who uploaded the guild sticker (requires the MANAGE_GUILD_EXPRESSIONS or
CREATE_GUILD_EXPRESSIONS permission).
sort_value: Option<u32>The standard sticker’s position within its pack.