disgroove 1.3.4-test.1 → 1.3.4
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/README.md +9 -3
- package/dist/lib/Client.d.ts +242 -0
- package/dist/lib/Client.js +256 -0
- package/dist/lib/Client.js.map +1 -0
- package/dist/lib/constants.d.ts +1084 -0
- package/dist/lib/constants.js +1163 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/gateway/Shard.d.ts +25 -0
- package/dist/lib/gateway/Shard.js +522 -0
- package/dist/lib/gateway/Shard.js.map +1 -0
- package/dist/lib/gateway/ShardsManager.d.ts +6 -0
- package/dist/lib/gateway/ShardsManager.js +14 -0
- package/dist/lib/gateway/ShardsManager.js.map +1 -0
- package/dist/lib/gateway/index.d.ts +2 -0
- package/dist/lib/gateway/index.js +19 -0
- package/dist/lib/gateway/index.js.map +1 -0
- package/dist/lib/index.d.ts +7 -0
- package/dist/lib/index.js +24 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/rest/CDN.d.ts +21 -0
- package/dist/lib/rest/CDN.js +46 -0
- package/dist/lib/rest/CDN.js.map +1 -0
- package/dist/lib/rest/Endpoints.d.ts +94 -0
- package/dist/lib/rest/Endpoints.js +211 -0
- package/dist/lib/rest/Endpoints.js.map +1 -0
- package/dist/lib/rest/REST.d.ts +17 -0
- package/dist/lib/rest/REST.js +35 -0
- package/dist/lib/rest/REST.js.map +1 -0
- package/dist/lib/rest/RequestsManager.d.ts +22 -0
- package/dist/lib/rest/RequestsManager.js +123 -0
- package/dist/lib/rest/RequestsManager.js.map +1 -0
- package/dist/lib/rest/index.d.ts +4 -0
- package/dist/lib/rest/index.js +34 -0
- package/dist/lib/rest/index.js.map +1 -0
- package/dist/lib/structures/Application.d.ts +174 -0
- package/dist/lib/structures/Application.js +328 -0
- package/dist/lib/structures/Application.js.map +1 -0
- package/dist/lib/structures/ApplicationCommand.d.ts +45 -0
- package/dist/lib/structures/ApplicationCommand.js +127 -0
- package/dist/lib/structures/ApplicationCommand.js.map +1 -0
- package/dist/lib/structures/AuditLog.d.ts +19 -0
- package/dist/lib/structures/AuditLog.js +101 -0
- package/dist/lib/structures/AuditLog.js.map +1 -0
- package/dist/lib/structures/AutoModerationRule.d.ts +34 -0
- package/dist/lib/structures/AutoModerationRule.js +96 -0
- package/dist/lib/structures/AutoModerationRule.js.map +1 -0
- package/dist/lib/structures/Base.d.ts +10 -0
- package/dist/lib/structures/Base.js +23 -0
- package/dist/lib/structures/Base.js.map +1 -0
- package/dist/lib/structures/Channel.d.ts +254 -0
- package/dist/lib/structures/Channel.js +592 -0
- package/dist/lib/structures/Channel.js.map +1 -0
- package/dist/lib/structures/ClientApplication.d.ts +150 -0
- package/dist/lib/structures/ClientApplication.js +241 -0
- package/dist/lib/structures/ClientApplication.js.map +1 -0
- package/dist/lib/structures/Emoji.d.ts +26 -0
- package/dist/lib/structures/Emoji.js +75 -0
- package/dist/lib/structures/Emoji.js.map +1 -0
- package/dist/lib/structures/Entitlement.d.ts +24 -0
- package/dist/lib/structures/Entitlement.js +68 -0
- package/dist/lib/structures/Entitlement.js.map +1 -0
- package/dist/lib/structures/Guild.d.ts +474 -0
- package/dist/lib/structures/Guild.js +1141 -0
- package/dist/lib/structures/Guild.js.map +1 -0
- package/dist/lib/structures/GuildMember.d.ts +49 -0
- package/dist/lib/structures/GuildMember.js +146 -0
- package/dist/lib/structures/GuildMember.js.map +1 -0
- package/dist/lib/structures/GuildScheduledEvent.d.ts +49 -0
- package/dist/lib/structures/GuildScheduledEvent.js +118 -0
- package/dist/lib/structures/GuildScheduledEvent.js.map +1 -0
- package/dist/lib/structures/GuildTemplate.d.ts +30 -0
- package/dist/lib/structures/GuildTemplate.js +72 -0
- package/dist/lib/structures/GuildTemplate.js.map +1 -0
- package/dist/lib/structures/IdentifiableBase.d.ts +15 -0
- package/dist/lib/structures/IdentifiableBase.js +25 -0
- package/dist/lib/structures/IdentifiableBase.js.map +1 -0
- package/dist/lib/structures/Integration.d.ts +31 -0
- package/dist/lib/structures/Integration.js +103 -0
- package/dist/lib/structures/Integration.js.map +1 -0
- package/dist/lib/structures/Interaction.d.ts +76 -0
- package/dist/lib/structures/Interaction.js +346 -0
- package/dist/lib/structures/Interaction.js.map +1 -0
- package/dist/lib/structures/Invite.d.ts +26 -0
- package/dist/lib/structures/Invite.js +82 -0
- package/dist/lib/structures/Invite.js.map +1 -0
- package/dist/lib/structures/Message.d.ts +86 -0
- package/dist/lib/structures/Message.js +303 -0
- package/dist/lib/structures/Message.js.map +1 -0
- package/dist/lib/structures/Role.d.ts +37 -0
- package/dist/lib/structures/Role.js +90 -0
- package/dist/lib/structures/Role.js.map +1 -0
- package/dist/lib/structures/SKU.d.ts +23 -0
- package/dist/lib/structures/SKU.js +63 -0
- package/dist/lib/structures/SKU.js.map +1 -0
- package/dist/lib/structures/StageInstance.d.ts +24 -0
- package/dist/lib/structures/StageInstance.js +57 -0
- package/dist/lib/structures/StageInstance.js.map +1 -0
- package/dist/lib/structures/Sticker.d.ts +31 -0
- package/dist/lib/structures/Sticker.js +86 -0
- package/dist/lib/structures/Sticker.js.map +1 -0
- package/dist/lib/structures/Team.d.ts +14 -0
- package/dist/lib/structures/Team.js +39 -0
- package/dist/lib/structures/Team.js.map +1 -0
- package/dist/lib/structures/TestEntitlement.d.ts +23 -0
- package/dist/lib/structures/TestEntitlement.js +61 -0
- package/dist/lib/structures/TestEntitlement.js.map +1 -0
- package/dist/lib/structures/UnavailableGuild.d.ts +11 -0
- package/dist/lib/structures/UnavailableGuild.js +25 -0
- package/dist/lib/structures/UnavailableGuild.js.map +1 -0
- package/dist/lib/structures/User.d.ts +63 -0
- package/dist/lib/structures/User.js +177 -0
- package/dist/lib/structures/User.js.map +1 -0
- package/dist/lib/structures/VoiceState.d.ts +24 -0
- package/dist/lib/structures/VoiceState.js +66 -0
- package/dist/lib/structures/VoiceState.js.map +1 -0
- package/dist/lib/structures/Webhook.d.ts +82 -0
- package/dist/lib/structures/Webhook.js +223 -0
- package/dist/lib/structures/Webhook.js.map +1 -0
- package/dist/lib/structures/index.d.ts +28 -0
- package/dist/lib/structures/index.js +45 -0
- package/dist/lib/structures/index.js.map +1 -0
- package/dist/lib/types/application-command.d.ts +102 -0
- package/dist/lib/types/application-command.js +3 -0
- package/dist/lib/types/application-command.js.map +1 -0
- package/dist/lib/types/application-role-connection-metadata.d.ts +18 -0
- package/dist/lib/types/application-role-connection-metadata.js +3 -0
- package/dist/lib/types/application-role-connection-metadata.js.map +1 -0
- package/dist/lib/types/application.d.ts +66 -0
- package/dist/lib/types/application.js +3 -0
- package/dist/lib/types/application.js.map +1 -0
- package/dist/lib/types/audit-log.d.ts +83 -0
- package/dist/lib/types/audit-log.js +3 -0
- package/dist/lib/types/audit-log.js.map +1 -0
- package/dist/lib/types/auto-moderation.d.ts +65 -0
- package/dist/lib/types/auto-moderation.js +3 -0
- package/dist/lib/types/auto-moderation.js.map +1 -0
- package/dist/lib/types/channel.d.ts +456 -0
- package/dist/lib/types/channel.js +3 -0
- package/dist/lib/types/channel.js.map +1 -0
- package/dist/lib/types/emoji.d.ts +22 -0
- package/dist/lib/types/emoji.js +3 -0
- package/dist/lib/types/emoji.js.map +1 -0
- package/dist/lib/types/entitlements.d.ts +32 -0
- package/dist/lib/types/entitlements.js +3 -0
- package/dist/lib/types/entitlements.js.map +1 -0
- package/dist/lib/types/gateway-events.d.ts +806 -0
- package/dist/lib/types/gateway-events.js +3 -0
- package/dist/lib/types/gateway-events.js.map +1 -0
- package/dist/lib/types/guild-scheduled-event.d.ts +57 -0
- package/dist/lib/types/guild-scheduled-event.js +3 -0
- package/dist/lib/types/guild-scheduled-event.js.map +1 -0
- package/dist/lib/types/guild-template.d.ts +28 -0
- package/dist/lib/types/guild-template.js +3 -0
- package/dist/lib/types/guild-template.js.map +1 -0
- package/dist/lib/types/guild.d.ts +334 -0
- package/dist/lib/types/guild.js +3 -0
- package/dist/lib/types/guild.js.map +1 -0
- package/dist/lib/types/index.d.ts +23 -0
- package/dist/lib/types/index.js +40 -0
- package/dist/lib/types/index.js.map +1 -0
- package/dist/lib/types/interaction.d.ts +171 -0
- package/dist/lib/types/interaction.js +3 -0
- package/dist/lib/types/interaction.js.map +1 -0
- package/dist/lib/types/invite.d.ts +59 -0
- package/dist/lib/types/invite.js +3 -0
- package/dist/lib/types/invite.js.map +1 -0
- package/dist/lib/types/message-components.d.ts +100 -0
- package/dist/lib/types/message-components.js +3 -0
- package/dist/lib/types/message-components.js.map +1 -0
- package/dist/lib/types/role.d.ts +47 -0
- package/dist/lib/types/role.js +3 -0
- package/dist/lib/types/role.js.map +1 -0
- package/dist/lib/types/sku.d.ts +30 -0
- package/dist/lib/types/sku.js +3 -0
- package/dist/lib/types/sku.js.map +1 -0
- package/dist/lib/types/stage-instance.d.ts +20 -0
- package/dist/lib/types/stage-instance.js +3 -0
- package/dist/lib/types/stage-instance.js.map +1 -0
- package/dist/lib/types/sticker.d.ts +61 -0
- package/dist/lib/types/sticker.js +3 -0
- package/dist/lib/types/sticker.js.map +1 -0
- package/dist/lib/types/team.d.ts +30 -0
- package/dist/lib/types/team.js +3 -0
- package/dist/lib/types/team.js.map +1 -0
- package/dist/lib/types/user.d.ts +77 -0
- package/dist/lib/types/user.js +3 -0
- package/dist/lib/types/user.js.map +1 -0
- package/dist/lib/types/voice.d.ts +47 -0
- package/dist/lib/types/voice.js +3 -0
- package/dist/lib/types/voice.js.map +1 -0
- package/dist/lib/types/webhook.d.ts +31 -0
- package/dist/lib/types/webhook.js +3 -0
- package/dist/lib/types/webhook.js.map +1 -0
- package/dist/lib/utils/Collection.d.ts +24 -0
- package/dist/lib/utils/Collection.js +65 -0
- package/dist/lib/utils/Collection.js.map +1 -0
- package/dist/lib/utils/Util.d.ts +15 -0
- package/dist/lib/utils/Util.js +543 -0
- package/dist/lib/utils/Util.js.map +1 -0
- package/dist/lib/utils/errors.d.ts +12 -0
- package/dist/lib/utils/errors.js +25 -0
- package/dist/lib/utils/errors.js.map +1 -0
- package/dist/lib/utils/index.d.ts +3 -0
- package/dist/lib/utils/index.js +20 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/dist/package.json +8 -14
- package/package.json +8 -14
@@ -0,0 +1,456 @@
|
|
1
|
+
import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
2
|
+
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, JSONMessageInteraction, JSONStickerItem, JSONSticker, JSONEmoji, JSONUser, JSONApplication, JSONGuildMember, RawActionRow, JSONActionRow, RawResolvedData, JSONResolvedData } from ".";
|
3
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
|
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?: string | null;
|
24
|
+
rtc_region?: string | null;
|
25
|
+
video_quality_mode?: VideoQualityModes;
|
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?: ChannelFlags;
|
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?: SortOrderTypes | null;
|
39
|
+
default_forum_layout?: ForumLayoutTypes;
|
40
|
+
}
|
41
|
+
/** https://discord.com/developers/docs/resources/channel#message-object-message-structure */
|
42
|
+
export interface RawMessage {
|
43
|
+
id: string;
|
44
|
+
channel_id: string;
|
45
|
+
author: RawUser;
|
46
|
+
content: string;
|
47
|
+
timestamp: string;
|
48
|
+
edited_timestamp: string | null;
|
49
|
+
tts: boolean;
|
50
|
+
mention_everyone: boolean;
|
51
|
+
mentions: Array<RawUser>;
|
52
|
+
mention_roles: Array<string>;
|
53
|
+
mention_channels?: Array<RawChannelMention>;
|
54
|
+
attachments: Array<RawAttachment>;
|
55
|
+
embeds: Array<RawEmbed>;
|
56
|
+
reactions?: Array<RawReaction>;
|
57
|
+
nonce?: number | string;
|
58
|
+
pinned: boolean;
|
59
|
+
webhook_id?: string;
|
60
|
+
type: MessageTypes;
|
61
|
+
activity?: RawMessageActivity;
|
62
|
+
application?: RawApplication;
|
63
|
+
application_id?: string;
|
64
|
+
message_reference?: RawMessageReference;
|
65
|
+
flags?: MessageFlags;
|
66
|
+
referenced_message?: RawMessage | null;
|
67
|
+
interaction?: RawMessageInteraction;
|
68
|
+
thread?: RawChannel;
|
69
|
+
components?: Array<RawActionRow>;
|
70
|
+
sticker_items?: Array<RawStickerItem>;
|
71
|
+
stickers?: Array<RawSticker>;
|
72
|
+
position?: number;
|
73
|
+
role_subscription_data?: RawRoleSubscriptionData;
|
74
|
+
resolved?: RawResolvedData;
|
75
|
+
}
|
76
|
+
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
|
77
|
+
export interface RawMessageActivity {
|
78
|
+
type: MessageActivityTypes;
|
79
|
+
party_id?: string;
|
80
|
+
}
|
81
|
+
/** https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */
|
82
|
+
export interface RawMessageReference {
|
83
|
+
message_id?: string;
|
84
|
+
channel_id?: string;
|
85
|
+
guild_id?: string;
|
86
|
+
fail_if_not_exists?: boolean;
|
87
|
+
}
|
88
|
+
/** https://discord.com/developers/docs/resources/channel#followed-channel-object-followed-channel-structure */
|
89
|
+
export interface RawFollowedChannel {
|
90
|
+
channel_id: string;
|
91
|
+
webhook_id: string;
|
92
|
+
}
|
93
|
+
/** https://discord.com/developers/docs/resources/channel#reaction-object-reaction-structure */
|
94
|
+
export interface RawReaction {
|
95
|
+
count: number;
|
96
|
+
count_details: RawReactionCountDetails;
|
97
|
+
me: boolean;
|
98
|
+
me_burst: boolean;
|
99
|
+
emoji: RawEmoji;
|
100
|
+
burst_colors: Array<string>;
|
101
|
+
}
|
102
|
+
/** https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure */
|
103
|
+
export interface RawReactionCountDetails {
|
104
|
+
burst: number;
|
105
|
+
normal: number;
|
106
|
+
}
|
107
|
+
/** https://discord.com/developers/docs/resources/channel#overwrite-object-overwrite-structure */
|
108
|
+
export interface RawOverwrite {
|
109
|
+
id: string;
|
110
|
+
type: number;
|
111
|
+
allow: string;
|
112
|
+
deny: string;
|
113
|
+
}
|
114
|
+
/** https://discord.com/developers/docs/resources/channel#thread-metadata-object-thread-metadata-structure */
|
115
|
+
export interface RawThreadMetadata {
|
116
|
+
archived: boolean;
|
117
|
+
auto_archive_duration: number;
|
118
|
+
archive_timestamp: string;
|
119
|
+
locked: boolean;
|
120
|
+
invitable?: boolean;
|
121
|
+
create_timestamp?: string | null;
|
122
|
+
}
|
123
|
+
/** https://discord.com/developers/docs/resources/channel#thread-member-object-thread-member-structure */
|
124
|
+
export interface RawThreadMember {
|
125
|
+
id?: string;
|
126
|
+
user_id?: string;
|
127
|
+
join_timestamp: string;
|
128
|
+
flags: number;
|
129
|
+
member?: RawGuildMember;
|
130
|
+
}
|
131
|
+
/** https://discord.com/developers/docs/resources/channel#default-reaction-object-default-reaction-structure */
|
132
|
+
export interface RawDefaultReaction {
|
133
|
+
emoji_id: string | null;
|
134
|
+
emoji_name: string | null;
|
135
|
+
}
|
136
|
+
/** https://discord.com/developers/docs/resources/channel#forum-tag-object-forum-tag-structure */
|
137
|
+
export interface RawForumTag {
|
138
|
+
id: string;
|
139
|
+
name: string;
|
140
|
+
moderated: boolean;
|
141
|
+
emoji_id?: string;
|
142
|
+
emoji_name?: string;
|
143
|
+
}
|
144
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-structure */
|
145
|
+
export interface RawEmbed {
|
146
|
+
title?: string;
|
147
|
+
type?: string;
|
148
|
+
description?: string;
|
149
|
+
url?: string;
|
150
|
+
timestamp?: string;
|
151
|
+
color?: number;
|
152
|
+
footer?: RawEmbedFooter;
|
153
|
+
image?: RawEmbedImage;
|
154
|
+
thumbnail?: RawEmbedThumbnail;
|
155
|
+
video?: RawEmbedVideo;
|
156
|
+
provider?: RawEmbedProvider;
|
157
|
+
author?: RawEmbedAuthor;
|
158
|
+
fields?: Array<RawEmbedField>;
|
159
|
+
}
|
160
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure */
|
161
|
+
export interface RawEmbedThumbnail {
|
162
|
+
url: string;
|
163
|
+
proxy_url?: string;
|
164
|
+
height?: number;
|
165
|
+
width?: number;
|
166
|
+
}
|
167
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure */
|
168
|
+
export interface RawEmbedVideo {
|
169
|
+
url?: string;
|
170
|
+
proxy_url?: string;
|
171
|
+
height?: number;
|
172
|
+
width?: number;
|
173
|
+
}
|
174
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure */
|
175
|
+
export interface RawEmbedImage {
|
176
|
+
url: string;
|
177
|
+
proxy_url?: string;
|
178
|
+
height?: number;
|
179
|
+
width?: number;
|
180
|
+
}
|
181
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-provider-structure */
|
182
|
+
export interface RawEmbedProvider {
|
183
|
+
name?: string;
|
184
|
+
url?: string;
|
185
|
+
}
|
186
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure */
|
187
|
+
export interface RawEmbedAuthor {
|
188
|
+
name: string;
|
189
|
+
url?: string;
|
190
|
+
icon_url?: string;
|
191
|
+
proxy_icon_url?: string;
|
192
|
+
}
|
193
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure */
|
194
|
+
export interface RawEmbedFooter {
|
195
|
+
text: string;
|
196
|
+
icon_url?: string;
|
197
|
+
proxy_icon_url?: string;
|
198
|
+
}
|
199
|
+
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure */
|
200
|
+
export interface RawEmbedField {
|
201
|
+
name: string;
|
202
|
+
value: string;
|
203
|
+
inline?: boolean;
|
204
|
+
}
|
205
|
+
/** https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure */
|
206
|
+
export interface RawAttachment {
|
207
|
+
id: string;
|
208
|
+
filename: string;
|
209
|
+
description?: string;
|
210
|
+
content_type?: string;
|
211
|
+
size: number;
|
212
|
+
url: string;
|
213
|
+
proxy_url: string;
|
214
|
+
height?: number;
|
215
|
+
width?: number;
|
216
|
+
ephemeral?: boolean;
|
217
|
+
duration_secs?: number;
|
218
|
+
waveform?: boolean;
|
219
|
+
flags?: AttachmentFlags;
|
220
|
+
}
|
221
|
+
/** https://discord.com/developers/docs/resources/channel#channel-mention-object-channel-mention-structure */
|
222
|
+
export interface RawChannelMention {
|
223
|
+
id: string;
|
224
|
+
guild_id: string;
|
225
|
+
type: ChannelTypes;
|
226
|
+
name: string;
|
227
|
+
}
|
228
|
+
/** https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure */
|
229
|
+
export interface RawAllowedMentions {
|
230
|
+
parse: Array<AllowedMentionTypes>;
|
231
|
+
roles: Array<string>;
|
232
|
+
users: Array<string>;
|
233
|
+
replied_user: boolean;
|
234
|
+
}
|
235
|
+
/** https://discord.com/developers/docs/resources/channel#role-subscription-data-object-role-subscription-data-object-structure */
|
236
|
+
export interface RawRoleSubscriptionData {
|
237
|
+
role_subscription_listing_id: string;
|
238
|
+
tier_name: string;
|
239
|
+
total_months_subscribed: number;
|
240
|
+
is_renewal: boolean;
|
241
|
+
}
|
242
|
+
export interface JSONChannel {
|
243
|
+
id: string;
|
244
|
+
type: ChannelTypes;
|
245
|
+
guildId?: string;
|
246
|
+
position?: number;
|
247
|
+
permissionOverwrites?: Array<JSONOverwrite>;
|
248
|
+
name?: string | null;
|
249
|
+
topic?: string | null;
|
250
|
+
nsfw?: boolean;
|
251
|
+
lastMessageId?: string | null;
|
252
|
+
bitrate?: number;
|
253
|
+
userLimit?: number;
|
254
|
+
rateLimitPerUser?: number;
|
255
|
+
recipients?: Array<JSONUser>;
|
256
|
+
icon?: string | null;
|
257
|
+
ownerId?: string;
|
258
|
+
applicationId?: string;
|
259
|
+
managed?: boolean;
|
260
|
+
parentId?: string | null;
|
261
|
+
lastPinTimestamp?: string | null;
|
262
|
+
rtcRegion?: string | null;
|
263
|
+
videoQualityMode?: VideoQualityModes;
|
264
|
+
messageCount?: number;
|
265
|
+
memberCount?: number;
|
266
|
+
threadMetadata?: JSONThreadMetadata;
|
267
|
+
member?: JSONThreadMember;
|
268
|
+
defaultAutoArchiveDuration?: number;
|
269
|
+
permissions?: string;
|
270
|
+
flags?: ChannelFlags;
|
271
|
+
totalMessageSent?: number;
|
272
|
+
availableTags?: Array<JSONForumTag>;
|
273
|
+
appliedTags?: Array<string>;
|
274
|
+
defaultReactionEmoji?: JSONDefaultReaction | null;
|
275
|
+
defaultThreadRateLimitPerUser?: number;
|
276
|
+
defaultSortOrder?: SortOrderTypes | null;
|
277
|
+
defaultForumLayout?: ForumLayoutTypes;
|
278
|
+
}
|
279
|
+
export interface JSONMessage {
|
280
|
+
id: string;
|
281
|
+
channelId: string;
|
282
|
+
author: JSONUser;
|
283
|
+
content: string;
|
284
|
+
timestamp: string;
|
285
|
+
editedTimestamp: string | null;
|
286
|
+
tts: boolean;
|
287
|
+
mentionEveryone: boolean;
|
288
|
+
mentions: Array<JSONUser>;
|
289
|
+
mentionRoles: Array<string>;
|
290
|
+
mentionChannels?: Array<JSONChannelMention>;
|
291
|
+
attachments: Array<JSONAttachment>;
|
292
|
+
embeds: Array<JSONEmbed>;
|
293
|
+
reactions?: Array<JSONReaction>;
|
294
|
+
nonce?: number | string;
|
295
|
+
pinned: boolean;
|
296
|
+
webhookId?: string;
|
297
|
+
type: MessageTypes;
|
298
|
+
activity?: JSONMessageActivity;
|
299
|
+
application?: JSONApplication;
|
300
|
+
applicationId?: string;
|
301
|
+
messageReference?: JSONMessageReference;
|
302
|
+
flags?: MessageFlags;
|
303
|
+
referencedMessage?: JSONMessage | null;
|
304
|
+
interaction?: JSONMessageInteraction;
|
305
|
+
thread?: JSONChannel;
|
306
|
+
components?: Array<JSONActionRow>;
|
307
|
+
stickerItems?: Array<JSONStickerItem>;
|
308
|
+
stickers?: Array<JSONSticker>;
|
309
|
+
position?: number;
|
310
|
+
roleSubscriptionData?: JSONRoleSubscriptionData;
|
311
|
+
resolved?: JSONResolvedData;
|
312
|
+
}
|
313
|
+
export interface JSONMessageActivity {
|
314
|
+
type: MessageActivityTypes;
|
315
|
+
partyId?: string;
|
316
|
+
}
|
317
|
+
export interface JSONMessageReference {
|
318
|
+
messageId?: string;
|
319
|
+
channelId?: string;
|
320
|
+
guildId?: string;
|
321
|
+
failIfNotExists?: boolean;
|
322
|
+
}
|
323
|
+
export interface JSONFollowedChannel {
|
324
|
+
channelId: string;
|
325
|
+
webhookId: string;
|
326
|
+
}
|
327
|
+
export interface JSONReaction {
|
328
|
+
count: number;
|
329
|
+
countDetails: JSONReactionCountDetails;
|
330
|
+
me: boolean;
|
331
|
+
meBurst: boolean;
|
332
|
+
emoji: JSONEmoji;
|
333
|
+
burstColors: Array<string>;
|
334
|
+
}
|
335
|
+
export interface JSONReactionCountDetails {
|
336
|
+
burst: number;
|
337
|
+
normal: number;
|
338
|
+
}
|
339
|
+
export interface JSONOverwrite {
|
340
|
+
id: string;
|
341
|
+
type: number;
|
342
|
+
allow: string;
|
343
|
+
deny: string;
|
344
|
+
}
|
345
|
+
export interface JSONThreadMetadata {
|
346
|
+
archived: boolean;
|
347
|
+
autoArchiveDuration: number;
|
348
|
+
archiveTimestamp: string;
|
349
|
+
locked: boolean;
|
350
|
+
invitable?: boolean;
|
351
|
+
createTimestamp?: string | null;
|
352
|
+
}
|
353
|
+
export interface JSONThreadMember {
|
354
|
+
id?: string;
|
355
|
+
userId?: string;
|
356
|
+
joinTimestamp: string;
|
357
|
+
flags: number;
|
358
|
+
member?: JSONGuildMember;
|
359
|
+
}
|
360
|
+
export interface JSONDefaultReaction {
|
361
|
+
emojiId: string | null;
|
362
|
+
emojiName: string | null;
|
363
|
+
}
|
364
|
+
export interface JSONForumTag {
|
365
|
+
id: string;
|
366
|
+
name: string;
|
367
|
+
moderated: boolean;
|
368
|
+
emojiId?: string;
|
369
|
+
emojiName?: string;
|
370
|
+
}
|
371
|
+
export interface JSONEmbed {
|
372
|
+
title?: string;
|
373
|
+
type?: string;
|
374
|
+
description?: string;
|
375
|
+
url?: string;
|
376
|
+
timestamp?: string;
|
377
|
+
color?: number;
|
378
|
+
footer?: JSONEmbedFooter;
|
379
|
+
image?: JSONEmbedImage;
|
380
|
+
thumbnail?: JSONEmbedThumbnail;
|
381
|
+
video?: JSONEmbedVideo;
|
382
|
+
provider?: JSONEmbedProvider;
|
383
|
+
author?: JSONEmbedAuthor;
|
384
|
+
fields?: Array<JSONEmbedField>;
|
385
|
+
}
|
386
|
+
export interface JSONEmbedThumbnail {
|
387
|
+
url: string;
|
388
|
+
proxyURL?: string;
|
389
|
+
height?: number;
|
390
|
+
width?: number;
|
391
|
+
}
|
392
|
+
export interface JSONEmbedVideo {
|
393
|
+
url?: string;
|
394
|
+
proxyURL?: string;
|
395
|
+
height?: number;
|
396
|
+
width?: number;
|
397
|
+
}
|
398
|
+
export interface JSONEmbedImage {
|
399
|
+
url: string;
|
400
|
+
proxyURL?: string;
|
401
|
+
height?: number;
|
402
|
+
width?: number;
|
403
|
+
}
|
404
|
+
export interface JSONEmbedProvider {
|
405
|
+
name?: string;
|
406
|
+
url?: string;
|
407
|
+
}
|
408
|
+
export interface JSONEmbedAuthor {
|
409
|
+
name: string;
|
410
|
+
url?: string;
|
411
|
+
iconURL?: string;
|
412
|
+
proxyIconURL?: string;
|
413
|
+
}
|
414
|
+
export interface JSONEmbedFooter {
|
415
|
+
text: string;
|
416
|
+
iconURL?: string;
|
417
|
+
proxyIconURL?: string;
|
418
|
+
}
|
419
|
+
export interface JSONEmbedField {
|
420
|
+
name: string;
|
421
|
+
value: string;
|
422
|
+
inline?: boolean;
|
423
|
+
}
|
424
|
+
export interface JSONAttachment {
|
425
|
+
id: string;
|
426
|
+
filename: string;
|
427
|
+
description?: string;
|
428
|
+
contentType?: string;
|
429
|
+
size: number;
|
430
|
+
url: string;
|
431
|
+
proxyURL: string;
|
432
|
+
height?: number;
|
433
|
+
width?: number;
|
434
|
+
ephemeral?: boolean;
|
435
|
+
durationSecs?: number;
|
436
|
+
waveform?: boolean;
|
437
|
+
flags?: AttachmentFlags;
|
438
|
+
}
|
439
|
+
export interface JSONChannelMention {
|
440
|
+
id: string;
|
441
|
+
guildId: string;
|
442
|
+
type: ChannelTypes;
|
443
|
+
name: string;
|
444
|
+
}
|
445
|
+
export interface JSONAllowedMentions {
|
446
|
+
parse: Array<AllowedMentionTypes>;
|
447
|
+
roles: Array<string>;
|
448
|
+
users: Array<string>;
|
449
|
+
repliedUser: boolean;
|
450
|
+
}
|
451
|
+
export interface JSONRoleSubscriptionData {
|
452
|
+
roleSubscriptionListingId: string;
|
453
|
+
tierName: string;
|
454
|
+
totalMonthsSubscribed: number;
|
455
|
+
isRenewal: boolean;
|
456
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../../lib/types/channel.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { JSONUser, RawUser } from ".";
|
2
|
+
/** https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure */
|
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?: JSONUser;
|
18
|
+
requireColons?: boolean;
|
19
|
+
managed?: boolean;
|
20
|
+
animated?: boolean;
|
21
|
+
available?: boolean;
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"emoji.js","sourceRoot":"","sources":["../../../lib/types/emoji.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { EntitlementTypes } from "../constants";
|
2
|
+
/** https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-structure */
|
3
|
+
export interface RawEntitlement {
|
4
|
+
id: string;
|
5
|
+
sku_id: string;
|
6
|
+
application_id: string;
|
7
|
+
user_id?: string;
|
8
|
+
promotion_id?: string | null;
|
9
|
+
type: EntitlementTypes;
|
10
|
+
deleted: boolean;
|
11
|
+
gift_code_flags?: number;
|
12
|
+
consumed?: boolean;
|
13
|
+
starts_at?: string;
|
14
|
+
ends_at?: string;
|
15
|
+
guild_id?: string;
|
16
|
+
subscription_id?: string;
|
17
|
+
}
|
18
|
+
export interface JSONEntitlement {
|
19
|
+
id: string;
|
20
|
+
skuId: string;
|
21
|
+
applicationId: string;
|
22
|
+
userId?: string;
|
23
|
+
promotionId?: string | null;
|
24
|
+
type: EntitlementTypes;
|
25
|
+
deleted: boolean;
|
26
|
+
giftCodeFlags?: number;
|
27
|
+
consumed?: boolean;
|
28
|
+
startsAt?: string;
|
29
|
+
endsAt?: string;
|
30
|
+
guildId?: string;
|
31
|
+
subscriptionId?: string;
|
32
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../lib/types/entitlements.ts"],"names":[],"mappings":""}
|