disgroove 1.2.9-dev.e013266 → 1.3.0-dev.8a77a04
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/Client.d.ts +36 -36
- package/dist/Client.js +75 -75
- package/dist/Client.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/gateway/Shard.js +27 -1
- package/dist/gateway/Shard.js.map +1 -1
- package/dist/rest/RequestsManager.js +1 -1
- package/dist/structures/Application.d.ts +67 -67
- package/dist/structures/Application.js +150 -150
- package/dist/structures/Application.js.map +1 -1
- package/dist/structures/ApplicationCommand.d.ts +4 -4
- package/dist/structures/ApplicationCommand.js +19 -19
- package/dist/structures/ApplicationCommand.js.map +1 -1
- package/dist/structures/AutoModerationRule.d.ts +2 -2
- package/dist/structures/AutoModerationRule.js +7 -7
- package/dist/structures/AutoModerationRule.js.map +1 -1
- package/dist/structures/Channel.d.ts +126 -126
- package/dist/structures/Channel.js +258 -258
- package/dist/structures/Channel.js.map +1 -1
- package/dist/structures/Emoji.d.ts +2 -2
- package/dist/structures/Emoji.js +9 -9
- package/dist/structures/Emoji.js.map +1 -1
- package/dist/structures/Guild.d.ts +305 -305
- package/dist/structures/Guild.js +617 -624
- package/dist/structures/Guild.js.map +1 -1
- package/dist/structures/GuildMember.d.ts +9 -9
- package/dist/structures/GuildMember.js +30 -30
- package/dist/structures/GuildMember.js.map +1 -1
- package/dist/structures/GuildScheduledEvent.d.ts +2 -2
- package/dist/structures/GuildScheduledEvent.js +5 -5
- package/dist/structures/GuildScheduledEvent.js.map +1 -1
- package/dist/structures/GuildTemplate.d.ts +4 -4
- package/dist/structures/GuildTemplate.js +9 -9
- package/dist/structures/GuildTemplate.js.map +1 -1
- package/dist/structures/Integration.js +2 -2
- package/dist/structures/Integration.js.map +1 -1
- package/dist/structures/Interaction.d.ts +24 -24
- package/dist/structures/Interaction.js +88 -67
- package/dist/structures/Interaction.js.map +1 -1
- package/dist/structures/Invite.js +1 -1
- package/dist/structures/Invite.js.map +1 -1
- package/dist/structures/Message.d.ts +20 -17
- package/dist/structures/Message.js +81 -55
- package/dist/structures/Message.js.map +1 -1
- package/dist/structures/PartialApplication.d.ts +67 -67
- package/dist/structures/PartialApplication.js +150 -150
- package/dist/structures/PartialApplication.js.map +1 -1
- package/dist/structures/Role.d.ts +2 -2
- package/dist/structures/Role.js +7 -7
- package/dist/structures/Role.js.map +1 -1
- package/dist/structures/StageInstance.d.ts +2 -2
- package/dist/structures/StageInstance.js +7 -7
- package/dist/structures/StageInstance.js.map +1 -1
- package/dist/structures/Sticker.d.ts +2 -2
- package/dist/structures/Sticker.js +9 -9
- package/dist/structures/Sticker.js.map +1 -1
- package/dist/structures/Team.js +2 -2
- package/dist/structures/Team.js.map +1 -1
- package/dist/structures/UnavailableGuild.d.ts +305 -305
- package/dist/structures/UnavailableGuild.js +609 -610
- package/dist/structures/UnavailableGuild.js.map +1 -1
- package/dist/structures/User.d.ts +11 -11
- package/dist/structures/User.js +35 -34
- package/dist/structures/User.js.map +1 -1
- package/dist/structures/Webhook.d.ts +26 -26
- package/dist/structures/Webhook.js +115 -147
- package/dist/structures/Webhook.js.map +1 -1
- package/dist/types/interaction.d.ts +6 -6
- package/dist/types/message-components.d.ts +4 -4
- package/dist/utils/Util.d.ts +8 -482
- package/dist/utils/Util.js +169 -150
- package/dist/utils/Util.js.map +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,90 @@ export declare class Channel extends Base {
|
|
|
49
49
|
protected patch(data: RawChannel & {
|
|
50
50
|
newly_created?: boolean;
|
|
51
51
|
}): void;
|
|
52
|
+
/** https://discord.com/developers/docs/resources/channel#group-dm-add-recipient */
|
|
53
|
+
addRecipient(userId: string, options: {
|
|
54
|
+
accessToken: string;
|
|
55
|
+
nick: string;
|
|
56
|
+
}): void;
|
|
57
|
+
/** https://discord.com/developers/docs/resources/channel#add-thread-member */
|
|
58
|
+
addThreadMember(userId: string): void;
|
|
59
|
+
/** https://discord.com/developers/docs/resources/channel#bulk-delete-messages */
|
|
60
|
+
bulkDeleteMessages(options?: {
|
|
61
|
+
messagesIds?: Array<string>;
|
|
62
|
+
}, reason?: string): void;
|
|
63
|
+
/** https://discord.com/developers/docs/resources/channel#create-channel-invite */
|
|
64
|
+
createInvite(options: {
|
|
65
|
+
maxAge?: number;
|
|
66
|
+
maxUses?: number;
|
|
67
|
+
temporary?: boolean;
|
|
68
|
+
unique?: boolean;
|
|
69
|
+
targetType?: InviteTargetTypes;
|
|
70
|
+
targetUserId?: string;
|
|
71
|
+
targetApplicationId?: string;
|
|
72
|
+
}, reason?: string): Promise<Invite>;
|
|
73
|
+
/** https://discord.com/developers/docs/resources/channel#create-message */
|
|
74
|
+
createMessage(options: {
|
|
75
|
+
content?: string;
|
|
76
|
+
nonce?: string | number;
|
|
77
|
+
tts?: boolean;
|
|
78
|
+
embeds?: Array<JSONEmbed>;
|
|
79
|
+
allowedMentions?: JSONAllowedMentions;
|
|
80
|
+
messageReference?: JSONMessageReference;
|
|
81
|
+
components?: Array<JSONActionRow>;
|
|
82
|
+
stickersIds?: Array<string>;
|
|
83
|
+
files?: Array<File>;
|
|
84
|
+
attachments?: Array<JSONAttachment>;
|
|
85
|
+
flags?: MessageFlags;
|
|
86
|
+
}): Promise<Message>;
|
|
87
|
+
/** https://discord.com/developers/docs/resources/channel#create-reaction */
|
|
88
|
+
createReaction(messageId: string, emoji: string): void;
|
|
89
|
+
/** https://discord.com/developers/docs/resources/channel#start-thread-from-message */
|
|
90
|
+
createThreadFromMessage(messageId: string, options: {
|
|
91
|
+
name: string;
|
|
92
|
+
autoArchiveDuration?: number;
|
|
93
|
+
rateLimitPerUser?: number | null;
|
|
94
|
+
}, reason?: string): Promise<Channel>;
|
|
95
|
+
/** https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel */
|
|
96
|
+
createThreadInForumOrMediaChannel(options: {
|
|
97
|
+
name: string;
|
|
98
|
+
autoArchiveDuration?: number;
|
|
99
|
+
rateLimitPerUser?: number | null;
|
|
100
|
+
message: {
|
|
101
|
+
content?: string | null;
|
|
102
|
+
embeds?: Array<JSONEmbed> | null;
|
|
103
|
+
allowedMentions?: JSONAllowedMentions | null;
|
|
104
|
+
components?: Array<JSONActionRow> | null;
|
|
105
|
+
attachments?: Array<JSONAttachment> | null;
|
|
106
|
+
flags?: MessageFlags | null;
|
|
107
|
+
};
|
|
108
|
+
appliedTags?: Array<string>;
|
|
109
|
+
files?: Array<File> | null;
|
|
110
|
+
}, reason?: string): Promise<Channel>;
|
|
111
|
+
/** https://discord.com/developers/docs/resources/channel#start-thread-without-message */
|
|
112
|
+
createThreadWithoutMessage(options: {
|
|
113
|
+
name: string;
|
|
114
|
+
autoArchiveDuration?: number;
|
|
115
|
+
type?: ChannelTypes;
|
|
116
|
+
invitable?: boolean;
|
|
117
|
+
rateLimitPerUser?: number | null;
|
|
118
|
+
}, reason?: string): Promise<Channel>;
|
|
119
|
+
/** https://discord.com/developers/docs/resources/webhook#create-webhook */
|
|
120
|
+
createWebhook(options: {
|
|
121
|
+
name: string;
|
|
122
|
+
avatar?: string | null;
|
|
123
|
+
}, reason?: string): Promise<Webhook>;
|
|
124
|
+
/** https://discord.com/developers/docs/resources/channel#crosspost-message */
|
|
125
|
+
crosspostMessage(messageId: string): Promise<Message>;
|
|
126
|
+
/** https://discord.com/developers/docs/resources/channel#deleteclose-channel */
|
|
127
|
+
delete(reason?: string): Promise<JSONChannel>;
|
|
128
|
+
/** https://discord.com/developers/docs/resources/channel#delete-all-reactions */
|
|
129
|
+
deleteAllReactions(messageId: string, emoji?: string): void;
|
|
130
|
+
/** https://discord.com/developers/docs/resources/channel#delete-message */
|
|
131
|
+
deleteMessage(messageId: string, reason?: string): void;
|
|
132
|
+
/** https://discord.com/developers/docs/resources/channel#delete-channel-permission */
|
|
133
|
+
deletePermission(overwriteId: string, reason?: string): void;
|
|
134
|
+
/** https://discord.com/developers/docs/resources/channel#delete-user-reaction */
|
|
135
|
+
deleteReaction(messageId: string, emoji: string, userId?: string): void;
|
|
52
136
|
/** https://discord.com/developers/docs/resources/channel#modify-channel */
|
|
53
137
|
edit(options: {
|
|
54
138
|
name?: string | null;
|
|
@@ -77,44 +161,6 @@ export declare class Channel extends Base {
|
|
|
77
161
|
invitable?: boolean;
|
|
78
162
|
appliedTags?: Array<string>;
|
|
79
163
|
}, reason?: string): Promise<Channel>;
|
|
80
|
-
/** https://discord.com/developers/docs/resources/channel#deleteclose-channel */
|
|
81
|
-
delete(reason?: string): Promise<JSONChannel>;
|
|
82
|
-
/** https://discord.com/developers/docs/resources/channel#get-channel-messages */
|
|
83
|
-
getMessages(options: {
|
|
84
|
-
around?: string;
|
|
85
|
-
before?: string;
|
|
86
|
-
after?: string;
|
|
87
|
-
limit?: number;
|
|
88
|
-
}): Promise<Array<Message>>;
|
|
89
|
-
/** https://discord.com/developers/docs/resources/channel#get-channel-message */
|
|
90
|
-
getMessage(messageId: string): Promise<Message>;
|
|
91
|
-
/** https://discord.com/developers/docs/resources/channel#create-message */
|
|
92
|
-
createMessage(options: {
|
|
93
|
-
content?: string;
|
|
94
|
-
nonce?: string | number;
|
|
95
|
-
tts?: boolean;
|
|
96
|
-
embeds?: Array<JSONEmbed>;
|
|
97
|
-
allowedMentions?: JSONAllowedMentions;
|
|
98
|
-
messageReference?: JSONMessageReference;
|
|
99
|
-
components?: Array<JSONActionRow>;
|
|
100
|
-
stickersIds?: Array<string>;
|
|
101
|
-
files?: Array<File>;
|
|
102
|
-
attachments?: Array<JSONAttachment>;
|
|
103
|
-
flags?: MessageFlags;
|
|
104
|
-
}): Promise<Message>;
|
|
105
|
-
/** https://discord.com/developers/docs/resources/channel#crosspost-message */
|
|
106
|
-
crosspostMessage(messageId: string): Promise<Message>;
|
|
107
|
-
/** https://discord.com/developers/docs/resources/channel#create-reaction */
|
|
108
|
-
createReaction(messageId: string, emoji: string): void;
|
|
109
|
-
/** https://discord.com/developers/docs/resources/channel#delete-user-reaction */
|
|
110
|
-
deleteReaction(messageId: string, emoji: string, userId?: string): void;
|
|
111
|
-
/** https://discord.com/developers/docs/resources/channel#get-reactions */
|
|
112
|
-
getReactions(messageId: string, emoji: string, options?: {
|
|
113
|
-
after?: string;
|
|
114
|
-
limit?: number;
|
|
115
|
-
}): Promise<Array<User>>;
|
|
116
|
-
/** https://discord.com/developers/docs/resources/channel#delete-all-reactions */
|
|
117
|
-
deleteAllReactions(messageId: string, emoji?: string): void;
|
|
118
164
|
/** https://discord.com/developers/docs/resources/channel#edit-message */
|
|
119
165
|
editMessage(messageId: string, options: {
|
|
120
166
|
content?: string | null;
|
|
@@ -125,99 +171,16 @@ export declare class Channel extends Base {
|
|
|
125
171
|
files?: Array<File> | null;
|
|
126
172
|
attachments?: Array<JSONAttachment> | null;
|
|
127
173
|
}): Promise<Message>;
|
|
128
|
-
/** https://discord.com/developers/docs/resources/channel#delete-message */
|
|
129
|
-
deleteMessage(messageId: string, reason?: string): void;
|
|
130
|
-
/** https://discord.com/developers/docs/resources/channel#bulk-delete-messages */
|
|
131
|
-
bulkDeleteMessages(options?: {
|
|
132
|
-
messagesIds?: Array<string>;
|
|
133
|
-
}, reason?: string): void;
|
|
134
174
|
/** https://discord.com/developers/docs/resources/channel#edit-channel-permissions */
|
|
135
175
|
editPermissions(overwriteId: string, options: {
|
|
136
176
|
allow?: string | null;
|
|
137
177
|
deny?: string | null;
|
|
138
178
|
type: number;
|
|
139
179
|
}, reason?: string): void;
|
|
140
|
-
/** https://discord.com/developers/docs/resources/channel#get-channel-invites */
|
|
141
|
-
getInvites(): Promise<Array<Invite>>;
|
|
142
|
-
/** https://discord.com/developers/docs/resources/channel#create-channel-invite */
|
|
143
|
-
createInvite(options: {
|
|
144
|
-
maxAge?: number;
|
|
145
|
-
maxUses?: number;
|
|
146
|
-
temporary?: boolean;
|
|
147
|
-
unique?: boolean;
|
|
148
|
-
targetType?: InviteTargetTypes;
|
|
149
|
-
targetUserId?: string;
|
|
150
|
-
targetApplicationId?: string;
|
|
151
|
-
}, reason?: string): Promise<Invite>;
|
|
152
|
-
/** https://discord.com/developers/docs/resources/channel#delete-channel-permission */
|
|
153
|
-
deletePermission(overwriteId: string, reason?: string): void;
|
|
154
180
|
/** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
|
|
155
181
|
follow(options: {
|
|
156
182
|
webhookChannelId: string;
|
|
157
183
|
}): Promise<JSONFollowedChannel>;
|
|
158
|
-
/** https://discord.com/developers/docs/resources/channel#trigger-typing-indicator */
|
|
159
|
-
triggerTypingIndicator(): void;
|
|
160
|
-
/** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
|
|
161
|
-
getPinnedMessages(): Promise<Array<Message>>;
|
|
162
|
-
/** https://discord.com/developers/docs/resources/channel#pin-message */
|
|
163
|
-
pinMessage(messageId: string, reason?: string): void;
|
|
164
|
-
/** https://discord.com/developers/docs/resources/channel#unpin-message */
|
|
165
|
-
unpinMessage(messageId: string, reason?: string): void;
|
|
166
|
-
/** https://discord.com/developers/docs/resources/channel#group-dm-add-recipient */
|
|
167
|
-
addRecipient(userId: string, options: {
|
|
168
|
-
accessToken: string;
|
|
169
|
-
nick: string;
|
|
170
|
-
}): void;
|
|
171
|
-
/** https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient */
|
|
172
|
-
removeRecipient(userId: string): void;
|
|
173
|
-
/** https://discord.com/developers/docs/resources/channel#start-thread-from-message */
|
|
174
|
-
startThreadFromMessage(messageId: string, options: {
|
|
175
|
-
name: string;
|
|
176
|
-
autoArchiveDuration?: number;
|
|
177
|
-
rateLimitPerUser?: number | null;
|
|
178
|
-
}, reason?: string): Promise<Channel>;
|
|
179
|
-
/** https://discord.com/developers/docs/resources/channel#start-thread-without-message */
|
|
180
|
-
startThreadWithoutMessage(options: {
|
|
181
|
-
name: string;
|
|
182
|
-
autoArchiveDuration?: number;
|
|
183
|
-
type?: ChannelTypes;
|
|
184
|
-
invitable?: boolean;
|
|
185
|
-
rateLimitPerUser?: number | null;
|
|
186
|
-
}, reason?: string): Promise<Channel>;
|
|
187
|
-
/** https://discord.com/developers/docs/resources/channel#start-thread-in-forum-channel */
|
|
188
|
-
startThreadInForumChannel(options: {
|
|
189
|
-
name: string;
|
|
190
|
-
autoArchiveDuration?: number;
|
|
191
|
-
rateLimitPerUser?: number | null;
|
|
192
|
-
message: {
|
|
193
|
-
content?: string | null;
|
|
194
|
-
embeds?: Array<JSONEmbed> | null;
|
|
195
|
-
allowedMentions?: JSONAllowedMentions | null;
|
|
196
|
-
components?: Array<JSONActionRow> | null;
|
|
197
|
-
attachments?: Array<JSONAttachment> | null;
|
|
198
|
-
flags?: MessageFlags | null;
|
|
199
|
-
};
|
|
200
|
-
appliedTags?: Array<string>;
|
|
201
|
-
files?: Array<File> | null;
|
|
202
|
-
}, reason?: string): Promise<Channel>;
|
|
203
|
-
/** https://discord.com/developers/docs/resources/channel#join-thread */
|
|
204
|
-
joinThread(): void;
|
|
205
|
-
/** https://discord.com/developers/docs/resources/channel#add-thread-member */
|
|
206
|
-
addThreadMember(userId: string): void;
|
|
207
|
-
/** https://discord.com/developers/docs/resources/channel#leave-thread */
|
|
208
|
-
leaveThread(): void;
|
|
209
|
-
/** https://discord.com/developers/docs/resources/channel#remove-thread-member */
|
|
210
|
-
removeThreadMember(userId: string): void;
|
|
211
|
-
/** https://discord.com/developers/docs/resources/channel#get-thread-member */
|
|
212
|
-
getThreadMember(userId: string, options?: {
|
|
213
|
-
withMember?: boolean;
|
|
214
|
-
}): Promise<JSONThreadMember>;
|
|
215
|
-
/** https://discord.com/developers/docs/resources/channel#list-thread-members */
|
|
216
|
-
getThreadMembers(options?: {
|
|
217
|
-
withMember?: boolean;
|
|
218
|
-
after?: string;
|
|
219
|
-
limit?: number;
|
|
220
|
-
}): Promise<Array<JSONThreadMember>>;
|
|
221
184
|
/** https://discord.com/developers/docs/resources/channel#list-public-archived-threads */
|
|
222
185
|
getArchivedThreads(archivedStatus: "public" | "private", options?: {
|
|
223
186
|
before?: string;
|
|
@@ -227,6 +190,8 @@ export declare class Channel extends Base {
|
|
|
227
190
|
members: Array<JSONThreadMember>;
|
|
228
191
|
hasMore: boolean;
|
|
229
192
|
}>;
|
|
193
|
+
/** https://discord.com/developers/docs/resources/channel#get-channel-invites */
|
|
194
|
+
getInvites(): Promise<Array<Invite>>;
|
|
230
195
|
/** https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads */
|
|
231
196
|
getJoinedPrivateArchivedThreads(options?: {
|
|
232
197
|
before?: string;
|
|
@@ -236,13 +201,48 @@ export declare class Channel extends Base {
|
|
|
236
201
|
members: Array<JSONThreadMember>;
|
|
237
202
|
hasMore: boolean;
|
|
238
203
|
}>;
|
|
239
|
-
/** https://discord.com/developers/docs/resources/
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
204
|
+
/** https://discord.com/developers/docs/resources/channel#get-channel-message */
|
|
205
|
+
getMessage(messageId: string): Promise<Message>;
|
|
206
|
+
/** https://discord.com/developers/docs/resources/channel#get-channel-messages */
|
|
207
|
+
getMessages(options: {
|
|
208
|
+
around?: string;
|
|
209
|
+
before?: string;
|
|
210
|
+
after?: string;
|
|
211
|
+
limit?: number;
|
|
212
|
+
}): Promise<Array<Message>>;
|
|
213
|
+
/** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
|
|
214
|
+
getPinnedMessages(): Promise<Array<Message>>;
|
|
215
|
+
/** https://discord.com/developers/docs/resources/channel#get-reactions */
|
|
216
|
+
getReactions(messageId: string, emoji: string, options?: {
|
|
217
|
+
after?: string;
|
|
218
|
+
limit?: number;
|
|
219
|
+
}): Promise<Array<User>>;
|
|
220
|
+
/** https://discord.com/developers/docs/resources/channel#get-thread-member */
|
|
221
|
+
getThreadMember(userId: string, options?: {
|
|
222
|
+
withMember?: boolean;
|
|
223
|
+
}): Promise<JSONThreadMember>;
|
|
224
|
+
/** https://discord.com/developers/docs/resources/channel#list-thread-members */
|
|
225
|
+
getThreadMembers(options?: {
|
|
226
|
+
withMember?: boolean;
|
|
227
|
+
after?: string;
|
|
228
|
+
limit?: number;
|
|
229
|
+
}): Promise<Array<JSONThreadMember>>;
|
|
244
230
|
/** https://discord.com/developers/docs/resources/webhook#get-channel-webhooks */
|
|
245
231
|
getWebhooks(): Promise<Array<Webhook>>;
|
|
232
|
+
/** https://discord.com/developers/docs/resources/channel#join-thread */
|
|
233
|
+
joinThread(): void;
|
|
234
|
+
/** https://discord.com/developers/docs/resources/channel#leave-thread */
|
|
235
|
+
leaveThread(): void;
|
|
236
|
+
/** https://discord.com/developers/docs/resources/channel#pin-message */
|
|
237
|
+
pinMessage(messageId: string, reason?: string): void;
|
|
238
|
+
/** https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient */
|
|
239
|
+
removeRecipient(userId: string): void;
|
|
240
|
+
/** https://discord.com/developers/docs/resources/channel#remove-thread-member */
|
|
241
|
+
removeThreadMember(userId: string): void;
|
|
242
|
+
/** https://discord.com/developers/docs/resources/channel#trigger-typing-indicator */
|
|
243
|
+
triggerTypingIndicator(): void;
|
|
244
|
+
/** https://discord.com/developers/docs/resources/channel#unpin-message */
|
|
245
|
+
unpinMessage(messageId: string, reason?: string): void;
|
|
246
246
|
toRaw(): RawChannel & {
|
|
247
247
|
newly_created?: boolean;
|
|
248
248
|
};
|