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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
pub use crate::api::chat::{
get_emote_pack_emotes_response, get_emote_packs_response, AddEmoteToPackRequest,
CreateEmotePackRequest, DeleteEmoteFromPackRequest, DeleteEmotePackRequest,
DequipEmotePackRequest, GetEmotePackEmotesRequest, GetEmotePacksRequest,
};
use super::*;
#[into_request(
"GetEmotePackEmotesRequest",
"DeleteEmotePackRequest",
"DequipEmotePackRequest"
)]
#[derive(Debug, Clone, new)]
pub struct PackId {
pack_id: u64,
}
#[into_request("CreateEmotePackRequest")]
#[derive(Debug, Clone, new)]
pub struct CreateEmotePack {
pack_name: String,
}
client_api! {
action: CreateEmotePack,
api_fn: create_emote_pack,
service: chat,
}
client_api! {
action: GetEmotePacks,
api_fn: get_emote_packs,
service: chat,
}
client_api! {
action: GetEmotePackEmotes,
api_fn: get_emote_pack_emotes,
service: chat,
}
#[into_request("AddEmoteToPackRequest")]
#[derive(Debug, Clone, new)]
pub struct AddEmoteToPack {
pack_id: u64,
image_id: Hmc,
name: String,
}
client_api! {
request: AddEmoteToPackRequest,
api_fn: add_emote_to_pack,
service: chat,
}
#[into_request("DeleteEmoteFromPackRequest")]
#[derive(Debug, Clone, new)]
pub struct DeleteEmoteFromPack {
pack_id: u64,
image_id: Hmc,
}
client_api! {
request: DeleteEmoteFromPackRequest,
api_fn: delete_emote_from_pack,
service: chat,
}
client_api! {
request: DeleteEmotePackRequest,
api_fn: delete_emote_pack,
service: chat,
}
client_api! {
request: DequipEmotePackRequest,
api_fn: dequip_emote_pack,
service: chat,
}