disgroove 1.3.1-dev.8cd17af → 1.3.1-dev.99aa77b
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/package.json +30 -0
- package/package.json +30 -30
- package/dist/Client.d.ts +0 -229
- package/dist/Client.js +0 -251
- package/dist/Client.js.map +0 -1
- package/dist/constants.d.ts +0 -1083
- package/dist/constants.js +0 -1162
- package/dist/constants.js.map +0 -1
- package/dist/gateway/Shard.d.ts +0 -25
- package/dist/gateway/Shard.js +0 -557
- package/dist/gateway/Shard.js.map +0 -1
- package/dist/gateway/ShardsManager.d.ts +0 -5
- package/dist/gateway/ShardsManager.js +0 -13
- package/dist/gateway/ShardsManager.js.map +0 -1
- package/dist/gateway/index.d.ts +0 -2
- package/dist/gateway/index.js +0 -19
- package/dist/gateway/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -24
- package/dist/index.js.map +0 -1
- package/dist/rest/CDN.d.ts +0 -21
- package/dist/rest/CDN.js +0 -46
- package/dist/rest/CDN.js.map +0 -1
- package/dist/rest/Endpoints.d.ts +0 -94
- package/dist/rest/Endpoints.js +0 -211
- package/dist/rest/Endpoints.js.map +0 -1
- package/dist/rest/REST.d.ts +0 -22
- package/dist/rest/REST.js +0 -35
- package/dist/rest/REST.js.map +0 -1
- package/dist/rest/RequestsManager.d.ts +0 -17
- package/dist/rest/RequestsManager.js +0 -101
- package/dist/rest/RequestsManager.js.map +0 -1
- package/dist/rest/index.d.ts +0 -4
- package/dist/rest/index.js +0 -34
- package/dist/rest/index.js.map +0 -1
- package/dist/structures/Application.d.ts +0 -348
- package/dist/structures/Application.js +0 -328
- package/dist/structures/Application.js.map +0 -1
- package/dist/structures/ApplicationCommand.d.ts +0 -74
- package/dist/structures/ApplicationCommand.js +0 -127
- package/dist/structures/ApplicationCommand.js.map +0 -1
- package/dist/structures/AuditLog.d.ts +0 -20
- package/dist/structures/AuditLog.js +0 -76
- package/dist/structures/AuditLog.js.map +0 -1
- package/dist/structures/AutoModerationRule.d.ts +0 -34
- package/dist/structures/AutoModerationRule.js +0 -96
- package/dist/structures/AutoModerationRule.js.map +0 -1
- package/dist/structures/Base.d.ts +0 -17
- package/dist/structures/Base.js +0 -31
- package/dist/structures/Base.js.map +0 -1
- package/dist/structures/Channel.d.ts +0 -252
- package/dist/structures/Channel.js +0 -590
- package/dist/structures/Channel.js.map +0 -1
- package/dist/structures/ClientApplication.d.ts +0 -324
- package/dist/structures/ClientApplication.js +0 -241
- package/dist/structures/ClientApplication.js.map +0 -1
- package/dist/structures/Emoji.d.ts +0 -28
- package/dist/structures/Emoji.js +0 -79
- package/dist/structures/Emoji.js.map +0 -1
- package/dist/structures/Entitlement.d.ts +0 -24
- package/dist/structures/Entitlement.js +0 -68
- package/dist/structures/Entitlement.js.map +0 -1
- package/dist/structures/Guild.d.ts +0 -549
- package/dist/structures/Guild.js +0 -1121
- package/dist/structures/Guild.js.map +0 -1
- package/dist/structures/GuildMember.d.ts +0 -50
- package/dist/structures/GuildMember.js +0 -149
- package/dist/structures/GuildMember.js.map +0 -1
- package/dist/structures/GuildScheduledEvent.d.ts +0 -49
- package/dist/structures/GuildScheduledEvent.js +0 -118
- package/dist/structures/GuildScheduledEvent.js.map +0 -1
- package/dist/structures/GuildTemplate.d.ts +0 -32
- package/dist/structures/GuildTemplate.js +0 -76
- package/dist/structures/GuildTemplate.js.map +0 -1
- package/dist/structures/Integration.d.ts +0 -30
- package/dist/structures/Integration.js +0 -102
- package/dist/structures/Integration.js.map +0 -1
- package/dist/structures/Interaction.d.ts +0 -76
- package/dist/structures/Interaction.js +0 -345
- package/dist/structures/Interaction.js.map +0 -1
- package/dist/structures/Invite.d.ts +0 -28
- package/dist/structures/Invite.js +0 -86
- package/dist/structures/Invite.js.map +0 -1
- package/dist/structures/Message.d.ts +0 -84
- package/dist/structures/Message.js +0 -300
- package/dist/structures/Message.js.map +0 -1
- package/dist/structures/PartialApplication.d.ts +0 -324
- package/dist/structures/PartialApplication.js +0 -241
- package/dist/structures/PartialApplication.js.map +0 -1
- package/dist/structures/Role.d.ts +0 -37
- package/dist/structures/Role.js +0 -90
- package/dist/structures/Role.js.map +0 -1
- package/dist/structures/SKU.d.ts +0 -23
- package/dist/structures/SKU.js +0 -63
- package/dist/structures/SKU.js.map +0 -1
- package/dist/structures/StageInstance.d.ts +0 -24
- package/dist/structures/StageInstance.js +0 -57
- package/dist/structures/StageInstance.js.map +0 -1
- package/dist/structures/Sticker.d.ts +0 -31
- package/dist/structures/Sticker.js +0 -86
- package/dist/structures/Sticker.js.map +0 -1
- package/dist/structures/Team.d.ts +0 -14
- package/dist/structures/Team.js +0 -39
- package/dist/structures/Team.js.map +0 -1
- package/dist/structures/TestEntitlement.d.ts +0 -23
- package/dist/structures/TestEntitlement.js +0 -61
- package/dist/structures/TestEntitlement.js.map +0 -1
- package/dist/structures/UnavailableGuild.d.ts +0 -11
- package/dist/structures/UnavailableGuild.js +0 -25
- package/dist/structures/UnavailableGuild.js.map +0 -1
- package/dist/structures/User.d.ts +0 -63
- package/dist/structures/User.js +0 -177
- package/dist/structures/User.js.map +0 -1
- package/dist/structures/VoiceState.d.ts +0 -26
- package/dist/structures/VoiceState.js +0 -70
- package/dist/structures/VoiceState.js.map +0 -1
- package/dist/structures/Webhook.d.ts +0 -84
- package/dist/structures/Webhook.js +0 -239
- package/dist/structures/Webhook.js.map +0 -1
- package/dist/structures/index.d.ts +0 -27
- package/dist/structures/index.js +0 -44
- package/dist/structures/index.js.map +0 -1
- package/dist/types/application-command.d.ts +0 -102
- package/dist/types/application-command.js +0 -3
- package/dist/types/application-command.js.map +0 -1
- package/dist/types/application-role-connection-metadata.d.ts +0 -18
- package/dist/types/application-role-connection-metadata.js +0 -3
- package/dist/types/application-role-connection-metadata.js.map +0 -1
- package/dist/types/application.d.ts +0 -66
- package/dist/types/application.js +0 -3
- package/dist/types/application.js.map +0 -1
- package/dist/types/audit-log.d.ts +0 -82
- package/dist/types/audit-log.js +0 -3
- package/dist/types/audit-log.js.map +0 -1
- package/dist/types/auto-moderation.d.ts +0 -65
- package/dist/types/auto-moderation.js +0 -3
- package/dist/types/auto-moderation.js.map +0 -1
- package/dist/types/channel.d.ts +0 -456
- package/dist/types/channel.js +0 -3
- package/dist/types/channel.js.map +0 -1
- package/dist/types/emoji.d.ts +0 -22
- package/dist/types/emoji.js +0 -3
- package/dist/types/emoji.js.map +0 -1
- package/dist/types/entitlements.d.ts +0 -32
- package/dist/types/entitlements.js +0 -3
- package/dist/types/entitlements.js.map +0 -1
- package/dist/types/gateway-events.d.ts +0 -805
- package/dist/types/gateway-events.js +0 -3
- package/dist/types/gateway-events.js.map +0 -1
- package/dist/types/guild-scheduled-event.d.ts +0 -57
- package/dist/types/guild-scheduled-event.js +0 -3
- package/dist/types/guild-scheduled-event.js.map +0 -1
- package/dist/types/guild-template.d.ts +0 -28
- package/dist/types/guild-template.js +0 -3
- package/dist/types/guild-template.js.map +0 -1
- package/dist/types/guild.d.ts +0 -333
- package/dist/types/guild.js +0 -3
- package/dist/types/guild.js.map +0 -1
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -40
- package/dist/types/index.js.map +0 -1
- package/dist/types/interaction.d.ts +0 -170
- package/dist/types/interaction.js +0 -3
- package/dist/types/interaction.js.map +0 -1
- package/dist/types/invite.d.ts +0 -59
- package/dist/types/invite.js +0 -3
- package/dist/types/invite.js.map +0 -1
- package/dist/types/message-components.d.ts +0 -100
- package/dist/types/message-components.js +0 -3
- package/dist/types/message-components.js.map +0 -1
- package/dist/types/role.d.ts +0 -47
- package/dist/types/role.js +0 -3
- package/dist/types/role.js.map +0 -1
- package/dist/types/sku.d.ts +0 -30
- package/dist/types/sku.js +0 -3
- package/dist/types/sku.js.map +0 -1
- package/dist/types/stage-instance.d.ts +0 -20
- package/dist/types/stage-instance.js +0 -3
- package/dist/types/stage-instance.js.map +0 -1
- package/dist/types/sticker.d.ts +0 -61
- package/dist/types/sticker.js +0 -3
- package/dist/types/sticker.js.map +0 -1
- package/dist/types/team.d.ts +0 -30
- package/dist/types/team.js +0 -3
- package/dist/types/team.js.map +0 -1
- package/dist/types/user.d.ts +0 -77
- package/dist/types/user.js +0 -3
- package/dist/types/user.js.map +0 -1
- package/dist/types/voice.d.ts +0 -47
- package/dist/types/voice.js +0 -3
- package/dist/types/voice.js.map +0 -1
- package/dist/types/webhook.d.ts +0 -31
- package/dist/types/webhook.js +0 -3
- package/dist/types/webhook.js.map +0 -1
- package/dist/utils/Util.d.ts +0 -13
- package/dist/utils/Util.js +0 -513
- package/dist/utils/Util.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -12
- package/dist/utils/errors.js +0 -25
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
package/dist/types/channel.d.ts
DELETED
@@ -1,456 +0,0 @@
|
|
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
|
-
}
|
package/dist/types/channel.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":""}
|
package/dist/types/emoji.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
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
|
-
}
|
package/dist/types/emoji.js
DELETED
package/dist/types/emoji.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"emoji.js","sourceRoot":"","sources":["../../src/types/emoji.ts"],"names":[],"mappings":""}
|
@@ -1,32 +0,0 @@
|
|
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
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/types/entitlements.ts"],"names":[],"mappings":""}
|