-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
119 lines (113 loc) · 2.09 KB
/
types.d.ts
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
interface Author {
id: string;
username: string;
avatar: string;
discriminator: string;
public_flags: number;
flags: number;
banner: string | null;
accent_color: number | null;
global_name: string;
avatar_decoration_data: {
asset: string;
sku_id: string;
} | null;
banner_color: string | null;
clan: string | null;
}
interface Attachment {
id: string;
filename: string;
size: number;
url: string;
proxy_url: string;
height: number | null;
width: number | null;
content_type: string | null;
}
interface Embed {
title: string;
description: string;
url: string;
timestamp: string;
color: number;
footer: {
text: string;
icon_url: string;
proxy_icon_url: string;
};
image: {
url: string;
proxy_url: string;
height: number;
width: number;
};
thumbnail: {
url: string;
proxy_url: string;
height: number;
width: number;
};
video: {
url: string;
height: number;
width: number;
};
provider: {
name: string;
url: string;
};
author: {
name: string;
url: string;
icon_url: string;
proxy_icon_url: string;
};
fields: Array<{
name: string;
value: string;
inline: boolean;
}>;
}
interface Component {
type: number;
components: Array<{
type: number;
style: number;
label: string;
emoji: {
name: string;
id: string;
animated: boolean;
};
custom_id: string;
url: string;
disabled: boolean;
}>;
}
interface StickerItem {
id: string;
name: string;
format_type: number;
}
interface Message {
type: number;
channel_id: string;
content: string;
attachments: Attachment[];
embeds: Embed[];
timestamp: string;
edited_timestamp: string | null;
flags: number;
components: Component[];
id: string;
author: Author;
// deno-lint-ignore no-explicit-any
mentions: any[];
// deno-lint-ignore no-explicit-any
mention_roles: any[];
pinned: boolean;
mention_everyone: boolean;
tts: boolean;
sticker_items: StickerItem[];
}