polyphony_types/entities/
sticker.rs

1use serde::{Deserialize, Serialize};
2
3use crate::{entities::User, utils::Snowflake};
4
5#[derive(Debug, Serialize, Deserialize, Clone)]
6pub struct Sticker {
7    pub id: Snowflake,
8    pub pack_id: Option<Snowflake>,
9    pub name: String,
10    pub description: Option<String>,
11    pub tags: String,
12    pub asset: Option<String>,
13    #[serde(rename = "type")]
14    pub sticker_type: u8,
15    pub format_type: u8,
16    pub available: Option<bool>,
17    pub guild_id: Option<u64>,
18    pub user: Option<User>,
19    pub sort_value: Option<u8>,
20}
21
22#[derive(Debug, Serialize, Deserialize)]
23pub struct StickerItem {
24    pub id: Snowflake,
25    pub name: String,
26    pub format_type: u8,
27}