disgroove 1.3.1-dev.6068992 → 1.3.1-dev.71905cd
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 +1 -2
- package/dist/Client.js +0 -2
- 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 +3 -68
- package/dist/gateway/Shard.js.map +1 -1
- package/dist/gateway/ShardsManager.d.ts +1 -2
- package/dist/gateway/ShardsManager.js +1 -2
- package/dist/gateway/ShardsManager.js.map +1 -1
- package/dist/rest/RequestsManager.js +1 -1
- package/dist/structures/Application.d.ts +35 -209
- package/dist/structures/Application.js +16 -16
- package/dist/structures/Application.js.map +1 -1
- package/dist/structures/ApplicationCommand.d.ts +3 -32
- package/dist/structures/ApplicationCommand.js.map +1 -1
- package/dist/structures/AuditLog.d.ts +8 -9
- package/dist/structures/AuditLog.js +42 -71
- package/dist/structures/AuditLog.js.map +1 -1
- package/dist/structures/ClientApplication.d.ts +34 -208
- package/dist/structures/ClientApplication.js +16 -16
- package/dist/structures/ClientApplication.js.map +1 -1
- package/dist/structures/Guild.d.ts +28 -116
- package/dist/structures/Guild.js +32 -93
- package/dist/structures/Guild.js.map +1 -1
- package/dist/structures/Interaction.js +6 -7
- package/dist/structures/Interaction.js.map +1 -1
- package/dist/structures/Message.js +6 -7
- package/dist/structures/Message.js.map +1 -1
- package/dist/types/audit-log.d.ts +8 -9
- package/dist/types/gateway-events.d.ts +7 -8
- package/dist/types/guild.d.ts +2 -3
- package/dist/types/interaction.d.ts +6 -7
- package/dist/utils/Util.d.ts +3 -1
- package/dist/utils/Util.js +30 -0
- package/dist/utils/Util.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/test/index.ts +72 -0
- package/test/voice1.ts +67 -0
- package/test/voice2.ts +60 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Base, User, ApplicationCommand, Team, Guild, TestEntitlement, Entitlement, SKU } from ".";
|
2
|
-
import type { JSONInstallParams, JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication,
|
2
|
+
import type { JSONInstallParams, JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication, JSONApplicationRoleConnectionMetadata, JSONApplicationCommandOption } from "../types";
|
3
3
|
import type { Client } from "../Client";
|
4
|
-
import type {
|
4
|
+
import type { ApplicationCommandTypes, ApplicationFlags, Locale } from "../constants";
|
5
5
|
/** https://discord.com/developers/docs/resources/application */
|
6
6
|
export declare class Application extends Base {
|
7
7
|
protected raw: RawApplication;
|
@@ -31,128 +31,13 @@ export declare class Application extends Base {
|
|
31
31
|
customInstallURL?: string;
|
32
32
|
constructor(data: RawApplication, client: Client);
|
33
33
|
protected patch(data: RawApplication): void;
|
34
|
-
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
|
35
|
-
bulkEditGlobalApplicationCommands(commands: Array<{
|
36
|
-
id?: string;
|
37
|
-
name: string;
|
38
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
39
|
-
description?: string;
|
40
|
-
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
41
|
-
options?: Array<{
|
42
|
-
type: ApplicationCommandOptionType;
|
43
|
-
name: string;
|
44
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
45
|
-
description: string;
|
46
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
47
|
-
required?: boolean;
|
48
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
49
|
-
options?: Array<{
|
50
|
-
type: ApplicationCommandOptionType;
|
51
|
-
name: string;
|
52
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
53
|
-
description: string;
|
54
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
55
|
-
required?: boolean;
|
56
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
57
|
-
channelTypes?: Array<ChannelTypes>;
|
58
|
-
minValue?: number;
|
59
|
-
maxValue?: number;
|
60
|
-
minLength?: number;
|
61
|
-
maxLength?: number;
|
62
|
-
autocomplete?: boolean;
|
63
|
-
}>;
|
64
|
-
channelTypes?: Array<ChannelTypes>;
|
65
|
-
minValue?: number;
|
66
|
-
maxValue?: number;
|
67
|
-
minLength?: number;
|
68
|
-
maxLength?: number;
|
69
|
-
autocomplete?: boolean;
|
70
|
-
}>;
|
71
|
-
defaultMemberPermissions?: string | null;
|
72
|
-
dmPermission?: boolean;
|
73
|
-
defaultPermission?: boolean | null;
|
74
|
-
type?: ApplicationCommandTypes;
|
75
|
-
nsfw?: boolean;
|
76
|
-
}>): Promise<Array<ApplicationCommand>>;
|
77
|
-
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
|
78
|
-
bulkEditGuildApplicationCommands(guildId: string, commands: Array<{
|
79
|
-
id?: string;
|
80
|
-
name?: string;
|
81
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
82
|
-
description?: string;
|
83
|
-
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
84
|
-
options?: Array<{
|
85
|
-
type: ApplicationCommandOptionType;
|
86
|
-
name: string;
|
87
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
88
|
-
description: string;
|
89
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
90
|
-
required?: boolean;
|
91
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
92
|
-
options?: Array<{
|
93
|
-
type: ApplicationCommandOptionType;
|
94
|
-
name: string;
|
95
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
96
|
-
description: string;
|
97
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
98
|
-
required?: boolean;
|
99
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
100
|
-
channelTypes?: Array<ChannelTypes>;
|
101
|
-
minValue?: number;
|
102
|
-
maxValue?: number;
|
103
|
-
minLength?: number;
|
104
|
-
maxLength?: number;
|
105
|
-
autocomplete?: boolean;
|
106
|
-
}>;
|
107
|
-
channelTypes?: Array<ChannelTypes>;
|
108
|
-
minValue?: number;
|
109
|
-
maxValue?: number;
|
110
|
-
minLength?: number;
|
111
|
-
maxLength?: number;
|
112
|
-
autocomplete?: boolean;
|
113
|
-
}>;
|
114
|
-
defaultMemberPermissions?: string | null;
|
115
|
-
dmPermission?: boolean;
|
116
|
-
defaultPermission?: boolean | null;
|
117
|
-
type: ApplicationCommandTypes;
|
118
|
-
nsfw?: boolean;
|
119
|
-
}>): Promise<Array<ApplicationCommand>>;
|
120
34
|
/** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
|
121
35
|
createGlobalApplicationCommand(options: {
|
122
36
|
name: string;
|
123
37
|
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
124
38
|
description?: string;
|
125
39
|
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
126
|
-
options?: Array<
|
127
|
-
type: ApplicationCommandOptionType;
|
128
|
-
name: string;
|
129
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
130
|
-
description: string;
|
131
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
132
|
-
required?: boolean;
|
133
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
134
|
-
options?: Array<{
|
135
|
-
type: ApplicationCommandOptionType;
|
136
|
-
name: string;
|
137
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
138
|
-
description: string;
|
139
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
140
|
-
required?: boolean;
|
141
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
142
|
-
channelTypes?: Array<ChannelTypes>;
|
143
|
-
minValue?: number;
|
144
|
-
maxValue?: number;
|
145
|
-
minLength?: number;
|
146
|
-
maxLength?: number;
|
147
|
-
autocomplete?: boolean;
|
148
|
-
}>;
|
149
|
-
channelTypes?: Array<ChannelTypes>;
|
150
|
-
minValue?: number;
|
151
|
-
maxValue?: number;
|
152
|
-
minLength?: number;
|
153
|
-
maxLength?: number;
|
154
|
-
autocomplete?: boolean;
|
155
|
-
}>;
|
40
|
+
options?: Array<JSONApplicationCommandOption>;
|
156
41
|
defaultMemberPermissions?: string | null;
|
157
42
|
dmPermission?: boolean;
|
158
43
|
defaultPermission?: boolean | null;
|
@@ -161,40 +46,11 @@ export declare class Application extends Base {
|
|
161
46
|
}): Promise<ApplicationCommand>;
|
162
47
|
/** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
|
163
48
|
createGuildApplicationCommand(guildId: string, options: {
|
164
|
-
name
|
49
|
+
name: string;
|
165
50
|
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
166
51
|
description?: string;
|
167
52
|
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
168
|
-
options?: Array<
|
169
|
-
type: ApplicationCommandOptionType;
|
170
|
-
name: string;
|
171
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
172
|
-
description: string;
|
173
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
174
|
-
required?: boolean;
|
175
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
176
|
-
options?: Array<{
|
177
|
-
type: ApplicationCommandOptionType;
|
178
|
-
name: string;
|
179
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
180
|
-
description: string;
|
181
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
182
|
-
required?: boolean;
|
183
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
184
|
-
channelTypes?: Array<ChannelTypes>;
|
185
|
-
minValue?: number;
|
186
|
-
maxValue?: number;
|
187
|
-
minLength?: number;
|
188
|
-
maxLength?: number;
|
189
|
-
autocomplete?: boolean;
|
190
|
-
}>;
|
191
|
-
channelTypes?: Array<ChannelTypes>;
|
192
|
-
minValue?: number;
|
193
|
-
maxValue?: number;
|
194
|
-
minLength?: number;
|
195
|
-
maxLength?: number;
|
196
|
-
autocomplete?: boolean;
|
197
|
-
}>;
|
53
|
+
options?: Array<JSONApplicationCommandOption>;
|
198
54
|
defaultMemberPermissions?: string | null;
|
199
55
|
dmPermission?: boolean;
|
200
56
|
defaultPermission?: boolean | null;
|
@@ -235,36 +91,7 @@ export declare class Application extends Base {
|
|
235
91
|
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
236
92
|
description?: string;
|
237
93
|
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
238
|
-
options?: Array<
|
239
|
-
type: ApplicationCommandOptionType;
|
240
|
-
name: string;
|
241
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
242
|
-
description: string;
|
243
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
244
|
-
required?: boolean;
|
245
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
246
|
-
options?: Array<{
|
247
|
-
type: ApplicationCommandOptionType;
|
248
|
-
name: string;
|
249
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
250
|
-
description: string;
|
251
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
252
|
-
required?: boolean;
|
253
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
254
|
-
channelTypes?: Array<ChannelTypes>;
|
255
|
-
minValue?: number;
|
256
|
-
maxValue?: number;
|
257
|
-
minLength?: number;
|
258
|
-
maxLength?: number;
|
259
|
-
autocomplete?: boolean;
|
260
|
-
}>;
|
261
|
-
channelTypes?: Array<ChannelTypes>;
|
262
|
-
minValue?: number;
|
263
|
-
maxValue?: number;
|
264
|
-
minLength?: number;
|
265
|
-
maxLength?: number;
|
266
|
-
autocomplete?: boolean;
|
267
|
-
}>;
|
94
|
+
options?: Array<JSONApplicationCommandOption>;
|
268
95
|
defaultMemberPermissions?: string | null;
|
269
96
|
defaultPermission?: boolean | null;
|
270
97
|
dmPermission?: boolean;
|
@@ -276,36 +103,7 @@ export declare class Application extends Base {
|
|
276
103
|
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
277
104
|
description?: string;
|
278
105
|
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
279
|
-
options?: Array<
|
280
|
-
type: ApplicationCommandOptionType;
|
281
|
-
name: string;
|
282
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
283
|
-
description: string;
|
284
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
285
|
-
required?: boolean;
|
286
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
287
|
-
options?: Array<{
|
288
|
-
type: ApplicationCommandOptionType;
|
289
|
-
name: string;
|
290
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
291
|
-
description: string;
|
292
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
293
|
-
required?: boolean;
|
294
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
295
|
-
channelTypes?: Array<ChannelTypes>;
|
296
|
-
minValue?: number;
|
297
|
-
maxValue?: number;
|
298
|
-
minLength?: number;
|
299
|
-
maxLength?: number;
|
300
|
-
autocomplete?: boolean;
|
301
|
-
}>;
|
302
|
-
channelTypes?: Array<ChannelTypes>;
|
303
|
-
minValue?: number;
|
304
|
-
maxValue?: number;
|
305
|
-
minLength?: number;
|
306
|
-
maxLength?: number;
|
307
|
-
autocomplete?: boolean;
|
308
|
-
}>;
|
106
|
+
options?: Array<JSONApplicationCommandOption>;
|
309
107
|
defaultMemberPermissions?: string | null;
|
310
108
|
defaultPermission?: boolean | null;
|
311
109
|
dmPermission?: boolean;
|
@@ -341,6 +139,34 @@ export declare class Application extends Base {
|
|
341
139
|
getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
|
342
140
|
/** https://discord.com/developers/docs/monetization/skus#list-skus */
|
343
141
|
getSKUs(): Promise<Array<SKU>>;
|
142
|
+
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
|
143
|
+
setGlobalApplicationCommands(commands: Array<{
|
144
|
+
id?: string;
|
145
|
+
name: string;
|
146
|
+
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
147
|
+
description?: string;
|
148
|
+
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
149
|
+
options?: Array<JSONApplicationCommandOption>;
|
150
|
+
defaultMemberPermissions?: string | null;
|
151
|
+
dmPermission?: boolean;
|
152
|
+
defaultPermission?: boolean | null;
|
153
|
+
type?: ApplicationCommandTypes;
|
154
|
+
nsfw?: boolean;
|
155
|
+
}>): Promise<Array<ApplicationCommand>>;
|
156
|
+
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
|
157
|
+
setGuildApplicationCommands(guildId: string, commands: Array<{
|
158
|
+
id?: string;
|
159
|
+
name: string;
|
160
|
+
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
161
|
+
description?: string;
|
162
|
+
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
163
|
+
options?: Array<JSONApplicationCommandOption>;
|
164
|
+
defaultMemberPermissions?: string | null;
|
165
|
+
dmPermission?: boolean;
|
166
|
+
defaultPermission?: boolean | null;
|
167
|
+
type: ApplicationCommandTypes;
|
168
|
+
nsfw?: boolean;
|
169
|
+
}>): Promise<Array<ApplicationCommand>>;
|
344
170
|
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
|
345
171
|
updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
|
346
172
|
toRaw(): RawApplication;
|
@@ -79,22 +79,6 @@ class Application extends _1.Base {
|
|
79
79
|
if (data.custom_install_url !== undefined)
|
80
80
|
this.customInstallURL = data.custom_install_url;
|
81
81
|
}
|
82
|
-
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
|
83
|
-
async bulkEditGlobalApplicationCommands(commands) {
|
84
|
-
return this.client.rest
|
85
|
-
.put(rest_1.Endpoints.applicationCommands(this.id), {
|
86
|
-
json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
|
87
|
-
})
|
88
|
-
.then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
|
89
|
-
}
|
90
|
-
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
|
91
|
-
async bulkEditGuildApplicationCommands(guildId, commands) {
|
92
|
-
return this.client.rest
|
93
|
-
.put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
|
94
|
-
json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
|
95
|
-
})
|
96
|
-
.then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
|
97
|
-
}
|
98
82
|
/** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
|
99
83
|
async createGlobalApplicationCommand(options) {
|
100
84
|
return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
|
@@ -278,6 +262,22 @@ class Application extends _1.Base {
|
|
278
262
|
.get(rest_1.Endpoints.applicationSKUs(this.id))
|
279
263
|
.then((response) => response.map((data) => new _1.SKU(data, this.client)));
|
280
264
|
}
|
265
|
+
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
|
266
|
+
async setGlobalApplicationCommands(commands) {
|
267
|
+
return this.client.rest
|
268
|
+
.put(rest_1.Endpoints.applicationCommands(this.id), {
|
269
|
+
json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
|
270
|
+
})
|
271
|
+
.then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
|
272
|
+
}
|
273
|
+
/** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
|
274
|
+
async setGuildApplicationCommands(guildId, commands) {
|
275
|
+
return this.client.rest
|
276
|
+
.put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
|
277
|
+
json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
|
278
|
+
})
|
279
|
+
.then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
|
280
|
+
}
|
281
281
|
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
|
282
282
|
async updateApplicationRoleConnectionMetadataRecords() {
|
283
283
|
return this.client.rest
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/structures/Application.ts"],"names":[],"mappings":";;;AAAA,wBASW;AAeX,kCAAoC;AASpC,gEAAgE;AAChE,MAAa,WAAY,SAAQ,OAAI;IAChB,GAAG,CAAiB;IACvC,IAAI,CAAS;IACb,IAAI,CAAgB;IACpB,WAAW,CAAS;IACpB,UAAU,CAAiB;IAC3B,SAAS,CAAU;IACnB,mBAAmB,CAAU;IAC7B,iBAAiB,CAAU;IAC3B,gBAAgB,CAAU;IAC1B,KAAK,CAAQ;IACb,SAAS,CAAS;IAClB,IAAI,CAAc;IAClB,OAAO,CAAU;IACjB,KAAK,CAAS;IACd,YAAY,CAAU;IACtB,IAAI,CAAU;IACd,UAAU,CAAU;IACpB,KAAK,CAAoB;IACzB,qBAAqB,CAAU;IAC/B,YAAY,CAAiB;IAC7B,uBAAuB,CAAU;IACjC,8BAA8B,CAAU;IACxC,IAAI,CAAiB;IACrB,aAAa,CAAqB;IAClC,gBAAgB,CAAU;IAE1B,YAAY,IAAoB,EAAE,MAAc;QAC9C,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,sBAAsB,CAAC;QACvD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI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,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,8BAA8B,EAAE,IAAI,CAAC,8BAA8B;YACnE,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;SACxC,CAAC;IACJ,CAAC;CACF;AAtjBD,kCAsjBC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Client } from "../Client";
|
2
|
-
import type { JSONApplicationCommand, JSONApplicationCommandOption,
|
3
|
-
import type {
|
2
|
+
import type { JSONApplicationCommand, JSONApplicationCommandOption, JSONApplicationCommandPermission, JSONGuildApplicationCommandPermissions, RawApplicationCommand } from "../types";
|
3
|
+
import type { ApplicationCommandTypes, Locale } from "../constants";
|
4
4
|
import { Base } from ".";
|
5
5
|
/** https://discord.com/developers/docs/interactions/application-commands */
|
6
6
|
export declare class ApplicationCommand extends Base {
|
@@ -28,36 +28,7 @@ export declare class ApplicationCommand extends Base {
|
|
28
28
|
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
29
29
|
description?: string;
|
30
30
|
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
31
|
-
options?: Array<
|
32
|
-
type: ApplicationCommandOptionType;
|
33
|
-
name: string;
|
34
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
35
|
-
description: string;
|
36
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
37
|
-
required?: boolean;
|
38
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
39
|
-
options: Array<{
|
40
|
-
type: ApplicationCommandOptionType;
|
41
|
-
name: string;
|
42
|
-
nameLocalizations?: Partial<Record<Locale, string>>;
|
43
|
-
description: string;
|
44
|
-
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
45
|
-
required?: boolean;
|
46
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
47
|
-
channelTypes?: Array<ChannelTypes>;
|
48
|
-
minValue?: number;
|
49
|
-
maxValue?: number;
|
50
|
-
minLength?: number;
|
51
|
-
maxLength?: number;
|
52
|
-
autocomplete?: boolean;
|
53
|
-
}>;
|
54
|
-
channelTypes?: Array<ChannelTypes>;
|
55
|
-
minValue?: number;
|
56
|
-
maxValue?: number;
|
57
|
-
minLength?: number;
|
58
|
-
maxLength?: number;
|
59
|
-
autocomplete?: boolean;
|
60
|
-
}>;
|
31
|
+
options?: Array<JSONApplicationCommandOption>;
|
61
32
|
defaultMemberPermissions?: string | null;
|
62
33
|
defaultPermission?: boolean | null;
|
63
34
|
dmPermission?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ApplicationCommand.js","sourceRoot":"","sources":["../../src/structures/ApplicationCommand.ts"],"names":[],"mappings":";;;AACA,kCAAoC;AAgBpC,wBAAyB;AAEzB,4EAA4E;AAC5E,MAAa,kBAAmB,SAAQ,OAAI;IACvB,GAAG,CAAwB;IAC9C,IAAI,CAA2B;IAC/B,aAAa,CAAS;IACtB,OAAO,CAAU;IACjB,IAAI,CAAS;IACb,iBAAiB,CAA0C;IAC3D,WAAW,CAAS;IACpB,wBAAwB,CAA0C;IAClE,OAAO,CAAuC;IAC9C,wBAAwB,CAAgB;IACxC,YAAY,CAAW;IACvB,iBAAiB,CAAkB;IACnC,IAAI,CAAW;IACf,OAAO,CAAS;IAEhB,YAAY,IAA2B,EAAE,MAAc;QACrD,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,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E,IAAI,CAAC,WAAW;YAC7B,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AA5KD,gDA4KC"}
|
@@ -1,19 +1,18 @@
|
|
1
1
|
import { ApplicationCommand, AutoModerationRule, Channel, GuildScheduledEvent, Integration, User, Webhook } from ".";
|
2
2
|
import type { Client } from "../Client";
|
3
3
|
import type { JSONAuditLog, JSONAuditLogEntry, RawAuditLog } from "../types";
|
4
|
-
import { Collection } from "../utils";
|
5
4
|
/** https://discord.com/developers/docs/resources/audit-log */
|
6
5
|
export declare class AuditLog {
|
7
6
|
private client;
|
8
7
|
private raw;
|
9
|
-
applicationCommands:
|
10
|
-
auditLogEntries:
|
11
|
-
autoModerationRules:
|
12
|
-
guildScheduledEvents:
|
13
|
-
integrations:
|
14
|
-
threads:
|
15
|
-
users:
|
16
|
-
webhooks:
|
8
|
+
applicationCommands: Array<ApplicationCommand>;
|
9
|
+
auditLogEntries: Array<JSONAuditLogEntry>;
|
10
|
+
autoModerationRules: Array<AutoModerationRule>;
|
11
|
+
guildScheduledEvents: Array<GuildScheduledEvent>;
|
12
|
+
integrations: Array<Integration>;
|
13
|
+
threads: Array<Channel>;
|
14
|
+
users: Array<User>;
|
15
|
+
webhooks: Array<Webhook>;
|
17
16
|
constructor(data: RawAuditLog, client: Client);
|
18
17
|
toString(): string;
|
19
18
|
toRaw(): RawAuditLog;
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.AuditLog = void 0;
|
4
4
|
const _1 = require(".");
|
5
|
-
const utils_1 = require("../utils");
|
6
5
|
/** https://discord.com/developers/docs/resources/audit-log */
|
7
6
|
class AuditLog {
|
8
7
|
client;
|
@@ -18,57 +17,41 @@ class AuditLog {
|
|
18
17
|
constructor(data, client) {
|
19
18
|
this.client = client;
|
20
19
|
this.raw = data;
|
21
|
-
this.applicationCommands = new
|
22
|
-
this.auditLogEntries =
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
: undefined,
|
58
|
-
reason: auditLogEntry.reason,
|
59
|
-
});
|
60
|
-
for (const autoModerationRule of data.auto_moderation_rules)
|
61
|
-
this.autoModerationRules.set(autoModerationRule.id, new _1.AutoModerationRule(autoModerationRule, this.client));
|
62
|
-
for (const guildScheduledEvent of data.guild_scheduled_events)
|
63
|
-
this.guildScheduledEvents.set(guildScheduledEvent.id, new _1.GuildScheduledEvent(guildScheduledEvent, this.client));
|
64
|
-
for (const integration of data.integrations)
|
65
|
-
this.integrations.set(integration.id, new _1.Integration(integration, this.client));
|
66
|
-
for (const thread of data.threads)
|
67
|
-
this.threads.set(thread.id, new _1.Channel(thread, this.client));
|
68
|
-
for (const user of data.users)
|
69
|
-
this.users.set(user.id, new _1.User(user, this.client));
|
70
|
-
for (const webhook of data.webhooks)
|
71
|
-
this.webhooks.set(webhook.id, new _1.Webhook(webhook, this.client));
|
20
|
+
this.applicationCommands = data.application_commands.map((applicationCommand) => new _1.ApplicationCommand(applicationCommand, this.client));
|
21
|
+
this.auditLogEntries = data.audit_log_entries.map((auditLogEntry) => ({
|
22
|
+
targetId: auditLogEntry.target_id,
|
23
|
+
changes: auditLogEntry.changes?.map((change) => ({
|
24
|
+
newValue: change.new_value,
|
25
|
+
oldValue: change.old_value,
|
26
|
+
key: change.key,
|
27
|
+
})),
|
28
|
+
userId: auditLogEntry.user_id,
|
29
|
+
id: auditLogEntry.id,
|
30
|
+
actionType: auditLogEntry.action_type,
|
31
|
+
options: auditLogEntry.options !== undefined
|
32
|
+
? {
|
33
|
+
applicationId: auditLogEntry.options.application_id,
|
34
|
+
autoModerationRuleName: auditLogEntry.options.auto_moderation_rule_name,
|
35
|
+
autoModerationRuleTriggerType: auditLogEntry.options.auto_moderation_rule_trigger_type,
|
36
|
+
channelId: auditLogEntry.options.channel_id,
|
37
|
+
count: auditLogEntry.options.count,
|
38
|
+
deleteMemberDays: auditLogEntry.options.delete_member_days,
|
39
|
+
id: auditLogEntry.options.id,
|
40
|
+
membersRemoved: auditLogEntry.options.members_removed,
|
41
|
+
messageId: auditLogEntry.options.message_id,
|
42
|
+
roleName: auditLogEntry.options.role_name,
|
43
|
+
type: auditLogEntry.options.type,
|
44
|
+
integrationType: auditLogEntry.options.integration_type,
|
45
|
+
}
|
46
|
+
: undefined,
|
47
|
+
reason: auditLogEntry.reason,
|
48
|
+
}));
|
49
|
+
this.autoModerationRules = data.auto_moderation_rules.map((autoModerationRule) => new _1.AutoModerationRule(autoModerationRule, this.client));
|
50
|
+
this.guildScheduledEvents = data.guild_scheduled_events.map((guildScheduledEvent) => new _1.GuildScheduledEvent(guildScheduledEvent, this.client));
|
51
|
+
this.integrations = data.integrations.map((integration) => new _1.Integration(integration, this.client));
|
52
|
+
this.threads = data.threads.map((thread) => new _1.Channel(thread, this.client));
|
53
|
+
this.users = data.users.map((user) => new _1.User(user, this.client));
|
54
|
+
this.webhooks = data.webhooks.map((webhook) => new _1.Webhook(webhook, this.client));
|
72
55
|
}
|
73
56
|
toString() {
|
74
57
|
return `[${this.constructor.name}]`;
|
@@ -78,26 +61,14 @@ class AuditLog {
|
|
78
61
|
}
|
79
62
|
toJSON() {
|
80
63
|
return {
|
81
|
-
applicationCommands:
|
82
|
-
applicationCommand.id,
|
83
|
-
applicationCommand.toJSON(),
|
84
|
-
])),
|
64
|
+
applicationCommands: this.applicationCommands.map((applicationCommand) => applicationCommand.toJSON()),
|
85
65
|
auditLogEntries: this.auditLogEntries,
|
86
|
-
autoModerationRules:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
guildScheduledEvent.toJSON(),
|
93
|
-
])),
|
94
|
-
integrations: new utils_1.Collection(this.integrations?.map((integration) => [
|
95
|
-
integration.id,
|
96
|
-
integration.toJSON(),
|
97
|
-
])),
|
98
|
-
threads: new utils_1.Collection(this.threads?.map((thread) => [thread.id, thread.toJSON()])),
|
99
|
-
users: new utils_1.Collection(this.users?.map((user) => [user.id, user.toJSON()])),
|
100
|
-
webhooks: new utils_1.Collection(this.webhooks?.map((webhook) => [webhook.id, webhook.toJSON()])),
|
66
|
+
autoModerationRules: this.autoModerationRules.map((autoModerationRule) => autoModerationRule.toJSON()),
|
67
|
+
guildScheduledEvents: this.guildScheduledEvents.map((guildScheduledEvent) => guildScheduledEvent.toJSON()),
|
68
|
+
integrations: this.integrations.map((integration) => integration.toJSON()),
|
69
|
+
threads: this.threads.map((thread) => thread.toJSON()),
|
70
|
+
users: this.users.map((user) => user.toJSON()),
|
71
|
+
webhooks: this.webhooks.map((webhook) => webhook.toJSON()),
|
101
72
|
};
|
102
73
|
}
|
103
74
|
}
|