disgroove 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/class/Client.d.ts +306 -0
- package/dist/class/Client.js +771 -0
- package/dist/class/Client.js.map +1 -0
- package/dist/class/index.d.ts +1 -0
- package/dist/class/index.js +18 -0
- package/dist/class/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/rest/Endpoints.d.ts +97 -0
- package/dist/rest/Endpoints.js +205 -0
- package/dist/rest/Endpoints.js.map +1 -0
- package/dist/rest/REST.d.ts +16 -0
- package/dist/rest/REST.js +55 -0
- package/dist/rest/REST.js.map +1 -0
- package/dist/rest/index.d.ts +2 -0
- package/dist/rest/index.js +32 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/structures/Application.d.ts +250 -0
- package/dist/structures/Application.js +258 -0
- package/dist/structures/Application.js.map +1 -0
- package/dist/structures/ApplicationCommand.d.ts +68 -0
- package/dist/structures/ApplicationCommand.js +133 -0
- package/dist/structures/ApplicationCommand.js.map +1 -0
- package/dist/structures/AuditLogEntry.d.ts +16 -0
- package/dist/structures/AuditLogEntry.js +54 -0
- package/dist/structures/AuditLogEntry.js.map +1 -0
- package/dist/structures/AutoModerationRule.d.ts +29 -0
- package/dist/structures/AutoModerationRule.js +85 -0
- package/dist/structures/AutoModerationRule.js.map +1 -0
- package/dist/structures/Channel.d.ts +296 -0
- package/dist/structures/Channel.js +579 -0
- package/dist/structures/Channel.js.map +1 -0
- package/dist/structures/Guild.d.ts +452 -0
- package/dist/structures/Guild.js +1161 -0
- package/dist/structures/Guild.js.map +1 -0
- package/dist/structures/GuildMember.d.ts +46 -0
- package/dist/structures/GuildMember.js +126 -0
- package/dist/structures/GuildMember.js.map +1 -0
- package/dist/structures/GuildScheduledEvent.d.ts +45 -0
- package/dist/structures/GuildScheduledEvent.js +115 -0
- package/dist/structures/GuildScheduledEvent.js.map +1 -0
- package/dist/structures/GuildTemplate.d.ts +25 -0
- package/dist/structures/GuildTemplate.js +80 -0
- package/dist/structures/GuildTemplate.js.map +1 -0
- package/dist/structures/Integration.d.ts +28 -0
- package/dist/structures/Integration.js +96 -0
- package/dist/structures/Integration.js.map +1 -0
- package/dist/structures/Interaction.d.ts +204 -0
- package/dist/structures/Interaction.js +368 -0
- package/dist/structures/Interaction.js.map +1 -0
- package/dist/structures/Invite.d.ts +22 -0
- package/dist/structures/Invite.js +108 -0
- package/dist/structures/Invite.js.map +1 -0
- package/dist/structures/Message.d.ts +97 -0
- package/dist/structures/Message.js +327 -0
- package/dist/structures/Message.js.map +1 -0
- package/dist/structures/Role.d.ts +35 -0
- package/dist/structures/Role.js +81 -0
- package/dist/structures/Role.js.map +1 -0
- package/dist/structures/StageInstance.d.ts +20 -0
- package/dist/structures/StageInstance.js +53 -0
- package/dist/structures/StageInstance.js.map +1 -0
- package/dist/structures/User.d.ts +53 -0
- package/dist/structures/User.js +168 -0
- package/dist/structures/User.js.map +1 -0
- package/dist/structures/Webhook.d.ts +133 -0
- package/dist/structures/Webhook.js +189 -0
- package/dist/structures/Webhook.js.map +1 -0
- package/dist/structures/index.d.ts +17 -0
- package/dist/structures/index.js +34 -0
- package/dist/structures/index.js.map +1 -0
- package/dist/types/application-command.d.ts +97 -0
- package/dist/types/application-command.js +3 -0
- package/dist/types/application-command.js.map +1 -0
- package/dist/types/application-role-connection-metadata.d.ts +17 -0
- package/dist/types/application-role-connection-metadata.js +3 -0
- package/dist/types/application-role-connection-metadata.js.map +1 -0
- package/dist/types/application.d.ts +55 -0
- package/dist/types/application.js +3 -0
- package/dist/types/application.js.map +1 -0
- package/dist/types/audit-log.d.ts +77 -0
- package/dist/types/audit-log.js +3 -0
- package/dist/types/audit-log.js.map +1 -0
- package/dist/types/auto-moderation.d.ts +61 -0
- package/dist/types/auto-moderation.js +3 -0
- package/dist/types/auto-moderation.js.map +1 -0
- package/dist/types/channel.d.ts +411 -0
- package/dist/types/channel.js +3 -0
- package/dist/types/channel.js.map +1 -0
- package/dist/types/emoji.d.ts +22 -0
- package/dist/types/emoji.js +3 -0
- package/dist/types/emoji.js.map +1 -0
- package/dist/types/gateway-events.d.ts +53 -0
- package/dist/types/gateway-events.js +3 -0
- package/dist/types/gateway-events.js.map +1 -0
- package/dist/types/guild-scheduled-event.d.ts +55 -0
- package/dist/types/guild-scheduled-event.js +3 -0
- package/dist/types/guild-scheduled-event.js.map +1 -0
- package/dist/types/guild-template.d.ts +28 -0
- package/dist/types/guild-template.js +3 -0
- package/dist/types/guild-template.js.map +1 -0
- package/dist/types/guild.d.ts +305 -0
- package/dist/types/guild.js +3 -0
- package/dist/types/guild.js.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interaction.d.ts +141 -0
- package/dist/types/interaction.js +3 -0
- package/dist/types/interaction.js.map +1 -0
- package/dist/types/invite.d.ts +56 -0
- package/dist/types/invite.js +3 -0
- package/dist/types/invite.js.map +1 -0
- package/dist/types/message-components.d.ts +76 -0
- package/dist/types/message-components.js +3 -0
- package/dist/types/message-components.js.map +1 -0
- package/dist/types/oauth2.d.ts +14 -0
- package/dist/types/oauth2.js +3 -0
- package/dist/types/oauth2.js.map +1 -0
- package/dist/types/role.d.ts +42 -0
- package/dist/types/role.js +3 -0
- package/dist/types/role.js.map +1 -0
- package/dist/types/stage-instance.d.ts +18 -0
- package/dist/types/stage-instance.js +3 -0
- package/dist/types/stage-instance.js.map +1 -0
- package/dist/types/sticker.d.ts +59 -0
- package/dist/types/sticker.js +3 -0
- package/dist/types/sticker.js.map +1 -0
- package/dist/types/team.d.ts +28 -0
- package/dist/types/team.js +3 -0
- package/dist/types/team.js.map +1 -0
- package/dist/types/user.d.ts +73 -0
- package/dist/types/user.js +3 -0
- package/dist/types/user.js.map +1 -0
- package/dist/types/voice.d.ts +46 -0
- package/dist/types/voice.js +3 -0
- package/dist/types/voice.js.map +1 -0
- package/dist/types/webhook.d.ts +31 -0
- package/dist/types/webhook.js +3 -0
- package/dist/types/webhook.js.map +1 -0
- package/dist/utils/constants.d.ts +963 -0
- package/dist/utils/constants.js +1147 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/rawers.d.ts +467 -0
- package/dist/utils/rawers.js +295 -0
- package/dist/utils/rawers.js.map +1 -0
- package/package.json +27 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import type { AllowedMentionTypes, ChannelTypes, MessageActivityTypes } from "../utils/constants";
|
|
2
|
+
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, JSONMessageInteraction, JSONStickerItem, JSONSticker, JSONEmoji } from ".";
|
|
3
|
+
import type { Application, Channel, GuildMember, Message, User } from "../structures";
|
|
4
|
+
export interface RawChannel {
|
|
5
|
+
id: string;
|
|
6
|
+
type: ChannelTypes;
|
|
7
|
+
guild_id?: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
permission_overwrites?: Array<RawOverwrite>;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
topic?: string | null;
|
|
12
|
+
nsfw?: boolean;
|
|
13
|
+
last_message_id?: string | null;
|
|
14
|
+
bitrate?: number;
|
|
15
|
+
user_limit?: number;
|
|
16
|
+
rate_limit_per_user?: number;
|
|
17
|
+
recipients?: Array<RawUser>;
|
|
18
|
+
icon?: string | null;
|
|
19
|
+
owner_id?: string;
|
|
20
|
+
application_id?: string;
|
|
21
|
+
managed?: boolean;
|
|
22
|
+
parent_id?: string | null;
|
|
23
|
+
last_pin_timestamp?: number | null;
|
|
24
|
+
rtc_region?: string | null;
|
|
25
|
+
video_quality_mode?: number;
|
|
26
|
+
message_count?: number;
|
|
27
|
+
member_count?: number;
|
|
28
|
+
thread_metadata?: RawThreadMetadata;
|
|
29
|
+
member?: RawThreadMember;
|
|
30
|
+
default_auto_archive_duration?: number;
|
|
31
|
+
permissions?: string;
|
|
32
|
+
flags?: number;
|
|
33
|
+
total_message_sent?: number;
|
|
34
|
+
available_tags?: Array<RawForumTag>;
|
|
35
|
+
applied_tags?: Array<string>;
|
|
36
|
+
default_reaction_emoji?: RawDefaultReaction | null;
|
|
37
|
+
default_thread_rate_limit_per_user?: number;
|
|
38
|
+
default_sort_order?: number | null;
|
|
39
|
+
default_forum_layout?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface RawMessage {
|
|
42
|
+
id: string;
|
|
43
|
+
channel_id: string;
|
|
44
|
+
author?: RawUser;
|
|
45
|
+
content?: string;
|
|
46
|
+
timestamp: string;
|
|
47
|
+
edited_timestamp?: string | null;
|
|
48
|
+
tts: boolean;
|
|
49
|
+
mention_everyone: boolean;
|
|
50
|
+
mentions?: Array<RawUser>;
|
|
51
|
+
mention_roles?: Array<string>;
|
|
52
|
+
mention_channels?: Array<RawChannelMention>;
|
|
53
|
+
attachments?: Array<RawAttachment>;
|
|
54
|
+
embeds?: Array<RawEmbed>;
|
|
55
|
+
reactions?: Array<RawReaction>;
|
|
56
|
+
nonce?: number | string;
|
|
57
|
+
pinned: boolean;
|
|
58
|
+
webhook_id?: string;
|
|
59
|
+
type: number;
|
|
60
|
+
activity?: RawMessageActivity;
|
|
61
|
+
application?: RawApplication;
|
|
62
|
+
application_id?: string;
|
|
63
|
+
message_reference?: RawMessageReference;
|
|
64
|
+
flags?: number;
|
|
65
|
+
referenced_message?: RawMessage | null;
|
|
66
|
+
interaction?: RawMessageInteraction;
|
|
67
|
+
thread?: RawChannel;
|
|
68
|
+
components?: Array<number>;
|
|
69
|
+
sticker_items?: Array<RawStickerItem>;
|
|
70
|
+
stickers?: Array<RawSticker>;
|
|
71
|
+
position?: number;
|
|
72
|
+
role_subscription_data?: RawRoleSubscriptionData;
|
|
73
|
+
}
|
|
74
|
+
export interface RawMessageActivity {
|
|
75
|
+
type: MessageActivityTypes;
|
|
76
|
+
party_id?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface RawMessageReference {
|
|
79
|
+
message_id?: string;
|
|
80
|
+
channel_id?: string;
|
|
81
|
+
guild_id?: string;
|
|
82
|
+
fail_if_not_exists?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export interface RawFollowedChannel {
|
|
85
|
+
channel_id: string;
|
|
86
|
+
webhook_id: string;
|
|
87
|
+
}
|
|
88
|
+
export interface RawReaction {
|
|
89
|
+
count: number;
|
|
90
|
+
me: boolean;
|
|
91
|
+
emoji: RawEmoji;
|
|
92
|
+
}
|
|
93
|
+
export interface RawOverwrite {
|
|
94
|
+
id: string;
|
|
95
|
+
type: number;
|
|
96
|
+
allow: string;
|
|
97
|
+
deny: string;
|
|
98
|
+
}
|
|
99
|
+
export interface RawThreadMetadata {
|
|
100
|
+
archived: boolean;
|
|
101
|
+
auto_archive_duration: number;
|
|
102
|
+
archive_timestamp: string;
|
|
103
|
+
locked: boolean;
|
|
104
|
+
invitable?: boolean;
|
|
105
|
+
create_timestamp?: string | null;
|
|
106
|
+
}
|
|
107
|
+
export interface RawThreadMember {
|
|
108
|
+
id?: string;
|
|
109
|
+
user_id?: string;
|
|
110
|
+
join_timestamp: string;
|
|
111
|
+
flags: number;
|
|
112
|
+
member?: RawGuildMember;
|
|
113
|
+
}
|
|
114
|
+
export interface RawDefaultReaction {
|
|
115
|
+
emoji_id: string | null;
|
|
116
|
+
emoji_name: string | null;
|
|
117
|
+
}
|
|
118
|
+
export interface RawForumTag {
|
|
119
|
+
id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
moderated: boolean;
|
|
122
|
+
emoji_id?: string;
|
|
123
|
+
emoji_name?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface RawEmbed {
|
|
126
|
+
title?: string;
|
|
127
|
+
type?: string;
|
|
128
|
+
description?: string;
|
|
129
|
+
url?: string;
|
|
130
|
+
timestamp?: string;
|
|
131
|
+
color?: number;
|
|
132
|
+
footer?: RawEmbedFooter;
|
|
133
|
+
image?: RawEmbedImage;
|
|
134
|
+
thumbnail?: RawEmbedThumbnail;
|
|
135
|
+
video?: RawEmbedVideo;
|
|
136
|
+
provider?: RawEmbedProvider;
|
|
137
|
+
author?: RawEmbedAuthor;
|
|
138
|
+
fields?: Array<RawEmbedField>;
|
|
139
|
+
}
|
|
140
|
+
export interface RawEmbedThumbnail {
|
|
141
|
+
url: string;
|
|
142
|
+
proxy_url?: string;
|
|
143
|
+
height?: number;
|
|
144
|
+
width?: number;
|
|
145
|
+
}
|
|
146
|
+
export interface RawEmbedVideo {
|
|
147
|
+
url?: string;
|
|
148
|
+
proxy_url?: string;
|
|
149
|
+
height?: number;
|
|
150
|
+
width?: number;
|
|
151
|
+
}
|
|
152
|
+
export interface RawEmbedImage {
|
|
153
|
+
url: string;
|
|
154
|
+
proxy_url?: string;
|
|
155
|
+
height?: number;
|
|
156
|
+
width?: number;
|
|
157
|
+
}
|
|
158
|
+
export interface RawEmbedProvider {
|
|
159
|
+
name?: string;
|
|
160
|
+
url?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface RawEmbedAuthor {
|
|
163
|
+
name: string;
|
|
164
|
+
url?: string;
|
|
165
|
+
icon_url?: string;
|
|
166
|
+
proxy_icon_url?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface RawEmbedFooter {
|
|
169
|
+
text: string;
|
|
170
|
+
icon_url?: string;
|
|
171
|
+
proxy_icon_url?: string;
|
|
172
|
+
}
|
|
173
|
+
export interface RawEmbedField {
|
|
174
|
+
name: string;
|
|
175
|
+
value: string;
|
|
176
|
+
inline?: boolean;
|
|
177
|
+
}
|
|
178
|
+
export interface RawAttachment {
|
|
179
|
+
id: string;
|
|
180
|
+
filename: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
content_type?: string;
|
|
183
|
+
size: number;
|
|
184
|
+
url: string;
|
|
185
|
+
proxy_url: string;
|
|
186
|
+
height?: number;
|
|
187
|
+
width?: number;
|
|
188
|
+
ephemeral?: boolean;
|
|
189
|
+
}
|
|
190
|
+
export interface RawChannelMention {
|
|
191
|
+
id: string;
|
|
192
|
+
guild_id: string;
|
|
193
|
+
type: ChannelTypes;
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export interface RawAllowedMentions {
|
|
197
|
+
parse: Array<AllowedMentionTypes>;
|
|
198
|
+
roles: Array<string>;
|
|
199
|
+
users: Array<string>;
|
|
200
|
+
replied_user: boolean;
|
|
201
|
+
}
|
|
202
|
+
export interface RawRoleSubscriptionData {
|
|
203
|
+
role_subscription_listing_id: string;
|
|
204
|
+
tier_name: string;
|
|
205
|
+
total_months_subscribed: number;
|
|
206
|
+
is_renewal: boolean;
|
|
207
|
+
}
|
|
208
|
+
export interface JSONChannel {
|
|
209
|
+
id: string;
|
|
210
|
+
type: ChannelTypes;
|
|
211
|
+
guildId?: string;
|
|
212
|
+
position?: number;
|
|
213
|
+
permissionOverwrites?: Array<JSONOverwrite>;
|
|
214
|
+
name?: string | null;
|
|
215
|
+
topic?: string | null;
|
|
216
|
+
nsfw?: boolean;
|
|
217
|
+
lastMessageId?: string | null;
|
|
218
|
+
bitrate?: number;
|
|
219
|
+
userLimit?: number;
|
|
220
|
+
rateLimitPerUser?: number;
|
|
221
|
+
recipients?: Array<User>;
|
|
222
|
+
icon?: string | null;
|
|
223
|
+
ownerId?: string;
|
|
224
|
+
applicationId?: string;
|
|
225
|
+
managed?: boolean;
|
|
226
|
+
parentId?: string | null;
|
|
227
|
+
lastPinTimestamp?: number | null;
|
|
228
|
+
rtcRegion?: string | null;
|
|
229
|
+
videoQualityMode?: number;
|
|
230
|
+
messageCount?: number;
|
|
231
|
+
memberCount?: number;
|
|
232
|
+
threadMetadata?: JSONThreadMetadata;
|
|
233
|
+
member?: JSONThreadMember;
|
|
234
|
+
defaultAutoArchiveDuration?: number;
|
|
235
|
+
permissions?: string;
|
|
236
|
+
flags?: number;
|
|
237
|
+
totalMessageSent?: number;
|
|
238
|
+
availableTags?: Array<JSONForumTag>;
|
|
239
|
+
appliedTags?: Array<string>;
|
|
240
|
+
defaultReactionEmoji?: JSONDefaultReaction | null;
|
|
241
|
+
defaultThreadRateLimitPerUser?: number;
|
|
242
|
+
defaultSortOrder?: number | null;
|
|
243
|
+
defaultForumLayout?: number;
|
|
244
|
+
}
|
|
245
|
+
export interface JSONMessage {
|
|
246
|
+
id: string;
|
|
247
|
+
channelId: string;
|
|
248
|
+
author?: User;
|
|
249
|
+
content?: string;
|
|
250
|
+
timestamp: string;
|
|
251
|
+
editedTimestamp?: string | null;
|
|
252
|
+
tts: boolean;
|
|
253
|
+
mentionEveryone: boolean;
|
|
254
|
+
mentions?: Array<User>;
|
|
255
|
+
mentionRoles?: Array<string>;
|
|
256
|
+
mentionChannels?: Array<JSONChannelMention>;
|
|
257
|
+
attachments?: Array<JSONAttachment>;
|
|
258
|
+
embeds?: Array<JSONEmbed>;
|
|
259
|
+
reactions?: Array<JSONReaction>;
|
|
260
|
+
nonce?: number | string;
|
|
261
|
+
pinned: boolean;
|
|
262
|
+
webhookId?: string;
|
|
263
|
+
type: number;
|
|
264
|
+
activity?: JSONMessageActivity;
|
|
265
|
+
application?: Application;
|
|
266
|
+
applicationId?: string;
|
|
267
|
+
messageReference?: JSONMessageReference;
|
|
268
|
+
flags?: number;
|
|
269
|
+
referencedMessage?: Message | null;
|
|
270
|
+
interaction?: JSONMessageInteraction;
|
|
271
|
+
thread?: Channel;
|
|
272
|
+
components?: Array<number>;
|
|
273
|
+
stickerItems?: Array<JSONStickerItem>;
|
|
274
|
+
stickers?: Array<JSONSticker>;
|
|
275
|
+
position?: number;
|
|
276
|
+
roleSubscriptionData?: JSONRoleSubscriptionData;
|
|
277
|
+
}
|
|
278
|
+
export interface JSONMessageActivity {
|
|
279
|
+
type: MessageActivityTypes;
|
|
280
|
+
partyId?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface JSONMessageReference {
|
|
283
|
+
messageId?: string;
|
|
284
|
+
channelId?: string;
|
|
285
|
+
guildId?: string;
|
|
286
|
+
failIfNotExists?: boolean;
|
|
287
|
+
}
|
|
288
|
+
export interface JSONFollowedChannel {
|
|
289
|
+
channelId: string;
|
|
290
|
+
webhookId: string;
|
|
291
|
+
}
|
|
292
|
+
export interface JSONReaction {
|
|
293
|
+
count: number;
|
|
294
|
+
me: boolean;
|
|
295
|
+
emoji: JSONEmoji;
|
|
296
|
+
}
|
|
297
|
+
export interface JSONOverwrite {
|
|
298
|
+
id: string;
|
|
299
|
+
type: number;
|
|
300
|
+
allow: string;
|
|
301
|
+
deny: string;
|
|
302
|
+
}
|
|
303
|
+
export interface JSONThreadMetadata {
|
|
304
|
+
archived: boolean;
|
|
305
|
+
autoArchiveDuration: number;
|
|
306
|
+
archiveTimestamp: string;
|
|
307
|
+
locked: boolean;
|
|
308
|
+
invitable?: boolean;
|
|
309
|
+
createTimestamp?: string | null;
|
|
310
|
+
}
|
|
311
|
+
export interface JSONThreadMember {
|
|
312
|
+
id?: string;
|
|
313
|
+
userId?: string;
|
|
314
|
+
joinTimestamp: string;
|
|
315
|
+
flags: number;
|
|
316
|
+
member?: GuildMember;
|
|
317
|
+
}
|
|
318
|
+
export interface JSONDefaultReaction {
|
|
319
|
+
emojiId: string | null;
|
|
320
|
+
emojiName: string | null;
|
|
321
|
+
}
|
|
322
|
+
export interface JSONForumTag {
|
|
323
|
+
id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
moderated: boolean;
|
|
326
|
+
emojiId?: string;
|
|
327
|
+
emojiName?: string;
|
|
328
|
+
}
|
|
329
|
+
export interface JSONEmbed {
|
|
330
|
+
title?: string;
|
|
331
|
+
type?: string;
|
|
332
|
+
description?: string;
|
|
333
|
+
url?: string;
|
|
334
|
+
timestamp?: string;
|
|
335
|
+
color?: number;
|
|
336
|
+
footer?: JSONEmbedFooter;
|
|
337
|
+
image?: JSONEmbedImage;
|
|
338
|
+
thumbnail?: JSONEmbedThumbnail;
|
|
339
|
+
video?: JSONEmbedVideo;
|
|
340
|
+
provider?: JSONEmbedProvider;
|
|
341
|
+
author?: JSONEmbedAuthor;
|
|
342
|
+
fields?: Array<JSONEmbedField>;
|
|
343
|
+
}
|
|
344
|
+
export interface JSONEmbedThumbnail {
|
|
345
|
+
url: string;
|
|
346
|
+
proxyUrl?: string;
|
|
347
|
+
height?: number;
|
|
348
|
+
width?: number;
|
|
349
|
+
}
|
|
350
|
+
export interface JSONEmbedVideo {
|
|
351
|
+
url?: string;
|
|
352
|
+
proxyUrl?: string;
|
|
353
|
+
height?: number;
|
|
354
|
+
width?: number;
|
|
355
|
+
}
|
|
356
|
+
export interface JSONEmbedImage {
|
|
357
|
+
url: string;
|
|
358
|
+
proxyUrl?: string;
|
|
359
|
+
height?: number;
|
|
360
|
+
width?: number;
|
|
361
|
+
}
|
|
362
|
+
export interface JSONEmbedProvider {
|
|
363
|
+
name?: string;
|
|
364
|
+
url?: string;
|
|
365
|
+
}
|
|
366
|
+
export interface JSONEmbedAuthor {
|
|
367
|
+
name: string;
|
|
368
|
+
url?: string;
|
|
369
|
+
iconUrl?: string;
|
|
370
|
+
proxyIconUrl?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface JSONEmbedFooter {
|
|
373
|
+
text: string;
|
|
374
|
+
iconUrl?: string;
|
|
375
|
+
proxyIconUrl?: string;
|
|
376
|
+
}
|
|
377
|
+
export interface JSONEmbedField {
|
|
378
|
+
name: string;
|
|
379
|
+
value: string;
|
|
380
|
+
inline?: boolean;
|
|
381
|
+
}
|
|
382
|
+
export interface JSONAttachment {
|
|
383
|
+
id: string;
|
|
384
|
+
filename: string;
|
|
385
|
+
description?: string;
|
|
386
|
+
contentType?: string;
|
|
387
|
+
size: number;
|
|
388
|
+
url: string;
|
|
389
|
+
proxyUrl: string;
|
|
390
|
+
height?: number;
|
|
391
|
+
width?: number;
|
|
392
|
+
ephemeral?: boolean;
|
|
393
|
+
}
|
|
394
|
+
export interface JSONChannelMention {
|
|
395
|
+
id: string;
|
|
396
|
+
guildId: string;
|
|
397
|
+
type: ChannelTypes;
|
|
398
|
+
name: string;
|
|
399
|
+
}
|
|
400
|
+
export interface JSONAllowedMentions {
|
|
401
|
+
parse: Array<AllowedMentionTypes>;
|
|
402
|
+
roles: Array<string>;
|
|
403
|
+
users: Array<string>;
|
|
404
|
+
repliedUser: boolean;
|
|
405
|
+
}
|
|
406
|
+
export interface JSONRoleSubscriptionData {
|
|
407
|
+
roleSubscriptionListingId: string;
|
|
408
|
+
tierName: string;
|
|
409
|
+
totalMonthsSubscribed: number;
|
|
410
|
+
isRenewal: boolean;
|
|
411
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RawUser } from ".";
|
|
2
|
+
import type { User } from "../structures";
|
|
3
|
+
export interface RawEmoji {
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string | null;
|
|
6
|
+
roles?: Array<string>;
|
|
7
|
+
user?: RawUser;
|
|
8
|
+
require_colons?: boolean;
|
|
9
|
+
managed?: boolean;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
available?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface JSONEmoji {
|
|
14
|
+
id: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
roles?: Array<string>;
|
|
17
|
+
user?: User;
|
|
18
|
+
requireColons?: boolean;
|
|
19
|
+
managed?: boolean;
|
|
20
|
+
animated?: boolean;
|
|
21
|
+
available?: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji.js","sourceRoot":"","sources":["../../src/types/emoji.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { User } from "../structures";
|
|
2
|
+
import type { ActivityFlags, ActivityType, StatusTypes } from "../utils";
|
|
3
|
+
export interface PresenceUpdateEventFields {
|
|
4
|
+
user: User;
|
|
5
|
+
guildId: string;
|
|
6
|
+
status: StatusTypes;
|
|
7
|
+
activities: Array<Activity>;
|
|
8
|
+
clientStatus: ClientStatus;
|
|
9
|
+
}
|
|
10
|
+
export interface ClientStatus {
|
|
11
|
+
desktop?: string;
|
|
12
|
+
mobile?: string;
|
|
13
|
+
web?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Activity {
|
|
16
|
+
name: string;
|
|
17
|
+
type: ActivityType;
|
|
18
|
+
url?: string | null;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
timestamps?: ActivityTimestamps;
|
|
21
|
+
applicationId?: string;
|
|
22
|
+
details?: string | null;
|
|
23
|
+
state?: string | null;
|
|
24
|
+
party?: ActivityParty;
|
|
25
|
+
assets?: ActivityAssets;
|
|
26
|
+
secrets?: ActivitySecrets;
|
|
27
|
+
instance?: boolean;
|
|
28
|
+
flags?: ActivityFlags;
|
|
29
|
+
buttons?: Array<ActivityButton>;
|
|
30
|
+
}
|
|
31
|
+
export interface ActivityTimestamps {
|
|
32
|
+
start?: number;
|
|
33
|
+
end?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface ActivityParty {
|
|
36
|
+
id?: string;
|
|
37
|
+
size?: Array<number>;
|
|
38
|
+
}
|
|
39
|
+
export interface ActivityAssets {
|
|
40
|
+
largeImage?: string;
|
|
41
|
+
largeText?: string;
|
|
42
|
+
smallImage?: string;
|
|
43
|
+
smallText?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ActivitySecrets {
|
|
46
|
+
join?: string;
|
|
47
|
+
spectate?: string;
|
|
48
|
+
match?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ActivityButton {
|
|
51
|
+
label: string;
|
|
52
|
+
url: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-events.js","sourceRoot":"","sources":["../../src/types/gateway-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { GuildScheduledEventPrivacyLevel, GuildScheduledEventStatus, GuildScheduledEventEntityTypes } from "../utils/constants";
|
|
2
|
+
import type { RawGuildMember, RawUser } from ".";
|
|
3
|
+
import type { GuildMember, User } from "../structures";
|
|
4
|
+
export interface RawGuildScheduledEvent {
|
|
5
|
+
id: string;
|
|
6
|
+
guild_id: string;
|
|
7
|
+
channel_id: string | null;
|
|
8
|
+
creator_id?: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
scheduled_start_time: string;
|
|
12
|
+
scheduled_end_time: string | null;
|
|
13
|
+
privacy_level: GuildScheduledEventPrivacyLevel;
|
|
14
|
+
status: GuildScheduledEventStatus;
|
|
15
|
+
entity_type: GuildScheduledEventEntityTypes;
|
|
16
|
+
entity_id?: string;
|
|
17
|
+
entity_metadata: RawGuildScheduledEventEntityMetadata | null;
|
|
18
|
+
creator?: RawUser;
|
|
19
|
+
user_count?: number;
|
|
20
|
+
image?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RawGuildScheduledEventEntityMetadata {
|
|
23
|
+
location?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface RawGuildScheduledEventUser {
|
|
26
|
+
guild_scheduled_event_id: string;
|
|
27
|
+
user: RawUser;
|
|
28
|
+
member?: RawGuildMember;
|
|
29
|
+
}
|
|
30
|
+
export interface JSONGuildScheduledEvent {
|
|
31
|
+
id: string;
|
|
32
|
+
guildId: string;
|
|
33
|
+
channelId: string | null;
|
|
34
|
+
creatorId?: string | null;
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string | null;
|
|
37
|
+
scheduledStartTime: string;
|
|
38
|
+
scheduledEndTime: string | null;
|
|
39
|
+
privacyLevel: GuildScheduledEventPrivacyLevel;
|
|
40
|
+
status: GuildScheduledEventStatus;
|
|
41
|
+
entityType: GuildScheduledEventEntityTypes;
|
|
42
|
+
entityId?: string;
|
|
43
|
+
entityMetadata: JSONGuildScheduledEventEntityMetadata | null;
|
|
44
|
+
creator?: User;
|
|
45
|
+
userCount?: number;
|
|
46
|
+
image?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface JSONGuildScheduledEventEntityMetadata {
|
|
49
|
+
location?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface JSONGuildScheduledEventUser {
|
|
52
|
+
guildScheduledEventId: string;
|
|
53
|
+
user: User;
|
|
54
|
+
member?: GuildMember;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guild-scheduled-event.js","sourceRoot":"","sources":["../../src/types/guild-scheduled-event.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RawGuild, RawUser } from ".";
|
|
2
|
+
import type { Guild, User } from "../structures";
|
|
3
|
+
export interface RawGuildTemplate {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
usage_count: number;
|
|
8
|
+
creator_id: string;
|
|
9
|
+
creator: RawUser;
|
|
10
|
+
created_at: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
source_guild_id: string;
|
|
13
|
+
serialized_source_guild: RawGuild;
|
|
14
|
+
is_dirty: boolean | null;
|
|
15
|
+
}
|
|
16
|
+
export interface JSONGuildTemplate {
|
|
17
|
+
code: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
usageCount: number;
|
|
21
|
+
creatorId: string;
|
|
22
|
+
creator: User;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
sourceGuildId: string;
|
|
26
|
+
serializedSourceGuild: Guild;
|
|
27
|
+
isDirty: boolean | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guild-template.js","sourceRoot":"","sources":["../../src/types/guild-template.ts"],"names":[],"mappings":""}
|