1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use crate::{Snowflake, User};
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct Emoji {
pub id: Option<Snowflake>,
pub name: String,
#[serde(default)]
pub roles: Vec<Snowflake>,
#[serde(default)]
pub user: Option<User>,
#[serde(default)]
pub require_colons: Option<bool>,
#[serde(default)]
pub managed: Option<bool>,
#[serde(default)]
pub animated: Option<bool>
}
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct MessageReaction {
pub count: i32,
pub me: bool,
pub emoji: Emoji
}
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct GuildEmojisUpdate {
pub guild_id: Snowflake,
pub emojis: Vec<Emoji>
}