@discordjs/core 3.0.0-dev.1786968995-99af6d8be → 3.0.0-dev.1788538586-ecea9ed57
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/http-only.d.mts +7 -3
- package/dist/http-only.d.ts +7 -3
- package/dist/http-only.js +25 -3
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +25 -3
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ var ApplicationCommandsAPI = class {
|
|
|
10
10
|
constructor(rest) {
|
|
11
11
|
this.rest = rest;
|
|
12
12
|
}
|
|
13
|
+
rest;
|
|
13
14
|
static {
|
|
14
15
|
__name(this, "ApplicationCommandsAPI");
|
|
15
16
|
}
|
|
@@ -21,9 +22,10 @@ var ApplicationCommandsAPI = class {
|
|
|
21
22
|
* @param query - The query options for fetching commands
|
|
22
23
|
* @param options - The options for fetching commands
|
|
23
24
|
*/
|
|
24
|
-
async getGlobalCommands(applicationId, query = {}, { auth, signal } = {}) {
|
|
25
|
+
async getGlobalCommands(applicationId, query = {}, { auth, locale, signal } = {}) {
|
|
25
26
|
return this.rest.get(Routes.applicationCommands(applicationId), {
|
|
26
27
|
auth,
|
|
28
|
+
headers: locale ? { "X-Discord-Locale": locale } : {},
|
|
27
29
|
query: makeURLSearchParams(query),
|
|
28
30
|
signal
|
|
29
31
|
});
|
|
@@ -108,9 +110,10 @@ var ApplicationCommandsAPI = class {
|
|
|
108
110
|
* @param query - The data for fetching commands
|
|
109
111
|
* @param options - The options for fetching commands
|
|
110
112
|
*/
|
|
111
|
-
async getGuildCommands(applicationId, guildId, query = {}, { auth, signal } = {}) {
|
|
113
|
+
async getGuildCommands(applicationId, guildId, query = {}, { auth, locale, signal } = {}) {
|
|
112
114
|
return this.rest.get(Routes.applicationGuildCommands(applicationId, guildId), {
|
|
113
115
|
auth,
|
|
116
|
+
headers: locale ? { "X-Discord-Locale": locale } : {},
|
|
114
117
|
query: makeURLSearchParams(query),
|
|
115
118
|
signal
|
|
116
119
|
});
|
|
@@ -249,6 +252,7 @@ var ApplicationsAPI = class {
|
|
|
249
252
|
constructor(rest) {
|
|
250
253
|
this.rest = rest;
|
|
251
254
|
}
|
|
255
|
+
rest;
|
|
252
256
|
static {
|
|
253
257
|
__name(this, "ApplicationsAPI");
|
|
254
258
|
}
|
|
@@ -369,6 +373,7 @@ var ChannelsAPI = class {
|
|
|
369
373
|
constructor(rest) {
|
|
370
374
|
this.rest = rest;
|
|
371
375
|
}
|
|
376
|
+
rest;
|
|
372
377
|
static {
|
|
373
378
|
__name(this, "ChannelsAPI");
|
|
374
379
|
}
|
|
@@ -910,6 +915,7 @@ var GatewayAPI = class {
|
|
|
910
915
|
constructor(rest) {
|
|
911
916
|
this.rest = rest;
|
|
912
917
|
}
|
|
918
|
+
rest;
|
|
913
919
|
static {
|
|
914
920
|
__name(this, "GatewayAPI");
|
|
915
921
|
}
|
|
@@ -948,6 +954,7 @@ var GuildsAPI = class {
|
|
|
948
954
|
constructor(rest) {
|
|
949
955
|
this.rest = rest;
|
|
950
956
|
}
|
|
957
|
+
rest;
|
|
951
958
|
static {
|
|
952
959
|
__name(this, "GuildsAPI");
|
|
953
960
|
}
|
|
@@ -2023,6 +2030,8 @@ var InteractionsAPI = class {
|
|
|
2023
2030
|
this.rest = rest;
|
|
2024
2031
|
this.webhooks = webhooks;
|
|
2025
2032
|
}
|
|
2033
|
+
rest;
|
|
2034
|
+
webhooks;
|
|
2026
2035
|
static {
|
|
2027
2036
|
__name(this, "InteractionsAPI");
|
|
2028
2037
|
}
|
|
@@ -2179,6 +2188,7 @@ var InvitesAPI = class {
|
|
|
2179
2188
|
constructor(rest) {
|
|
2180
2189
|
this.rest = rest;
|
|
2181
2190
|
}
|
|
2191
|
+
rest;
|
|
2182
2192
|
static {
|
|
2183
2193
|
__name(this, "InvitesAPI");
|
|
2184
2194
|
}
|
|
@@ -2218,6 +2228,7 @@ var MonetizationAPI = class {
|
|
|
2218
2228
|
constructor(rest) {
|
|
2219
2229
|
this.rest = rest;
|
|
2220
2230
|
}
|
|
2231
|
+
rest;
|
|
2221
2232
|
static {
|
|
2222
2233
|
__name(this, "MonetizationAPI");
|
|
2223
2234
|
}
|
|
@@ -2338,6 +2349,7 @@ var OAuth2API = class {
|
|
|
2338
2349
|
constructor(rest) {
|
|
2339
2350
|
this.rest = rest;
|
|
2340
2351
|
}
|
|
2352
|
+
rest;
|
|
2341
2353
|
static {
|
|
2342
2354
|
__name(this, "OAuth2API");
|
|
2343
2355
|
}
|
|
@@ -2464,6 +2476,7 @@ var PollAPI = class {
|
|
|
2464
2476
|
constructor(rest) {
|
|
2465
2477
|
this.rest = rest;
|
|
2466
2478
|
}
|
|
2479
|
+
rest;
|
|
2467
2480
|
static {
|
|
2468
2481
|
__name(this, "PollAPI");
|
|
2469
2482
|
}
|
|
@@ -2508,6 +2521,7 @@ var RoleConnectionsAPI = class {
|
|
|
2508
2521
|
constructor(rest) {
|
|
2509
2522
|
this.rest = rest;
|
|
2510
2523
|
}
|
|
2524
|
+
rest;
|
|
2511
2525
|
static {
|
|
2512
2526
|
__name(this, "RoleConnectionsAPI");
|
|
2513
2527
|
}
|
|
@@ -2547,6 +2561,7 @@ var SoundboardSoundsAPI = class {
|
|
|
2547
2561
|
constructor(rest) {
|
|
2548
2562
|
this.rest = rest;
|
|
2549
2563
|
}
|
|
2564
|
+
rest;
|
|
2550
2565
|
static {
|
|
2551
2566
|
__name(this, "SoundboardSoundsAPI");
|
|
2552
2567
|
}
|
|
@@ -2572,6 +2587,7 @@ var StageInstancesAPI = class {
|
|
|
2572
2587
|
constructor(rest) {
|
|
2573
2588
|
this.rest = rest;
|
|
2574
2589
|
}
|
|
2590
|
+
rest;
|
|
2575
2591
|
static {
|
|
2576
2592
|
__name(this, "StageInstancesAPI");
|
|
2577
2593
|
}
|
|
@@ -2636,6 +2652,7 @@ var StickersAPI = class {
|
|
|
2636
2652
|
constructor(rest) {
|
|
2637
2653
|
this.rest = rest;
|
|
2638
2654
|
}
|
|
2655
|
+
rest;
|
|
2639
2656
|
static {
|
|
2640
2657
|
__name(this, "StickersAPI");
|
|
2641
2658
|
}
|
|
@@ -2679,6 +2696,7 @@ var ThreadsAPI = class {
|
|
|
2679
2696
|
constructor(rest) {
|
|
2680
2697
|
this.rest = rest;
|
|
2681
2698
|
}
|
|
2699
|
+
rest;
|
|
2682
2700
|
static {
|
|
2683
2701
|
__name(this, "ThreadsAPI");
|
|
2684
2702
|
}
|
|
@@ -2757,6 +2775,7 @@ var UsersAPI = class {
|
|
|
2757
2775
|
constructor(rest) {
|
|
2758
2776
|
this.rest = rest;
|
|
2759
2777
|
}
|
|
2778
|
+
rest;
|
|
2760
2779
|
static {
|
|
2761
2780
|
__name(this, "UsersAPI");
|
|
2762
2781
|
}
|
|
@@ -2916,6 +2935,7 @@ var VoiceAPI = class {
|
|
|
2916
2935
|
constructor(rest) {
|
|
2917
2936
|
this.rest = rest;
|
|
2918
2937
|
}
|
|
2938
|
+
rest;
|
|
2919
2939
|
static {
|
|
2920
2940
|
__name(this, "VoiceAPI");
|
|
2921
2941
|
}
|
|
@@ -2995,6 +3015,7 @@ var WebhooksAPI = class {
|
|
|
2995
3015
|
constructor(rest) {
|
|
2996
3016
|
this.rest = rest;
|
|
2997
3017
|
}
|
|
3018
|
+
rest;
|
|
2998
3019
|
static {
|
|
2999
3020
|
__name(this, "WebhooksAPI");
|
|
3000
3021
|
}
|
|
@@ -3176,6 +3197,7 @@ var API = class {
|
|
|
3176
3197
|
this.webhooks = new WebhooksAPI(rest);
|
|
3177
3198
|
this.interactions = new InteractionsAPI(rest, this.webhooks);
|
|
3178
3199
|
}
|
|
3200
|
+
rest;
|
|
3179
3201
|
static {
|
|
3180
3202
|
__name(this, "API");
|
|
3181
3203
|
}
|
|
@@ -3458,7 +3480,7 @@ __name(withFiles, "withFiles");
|
|
|
3458
3480
|
// src/index.ts
|
|
3459
3481
|
export * from "discord-api-types/v10";
|
|
3460
3482
|
import { GatewayRateLimitError as GatewayRateLimitError2 } from "@discordjs/util";
|
|
3461
|
-
var version = "3.0.0-dev.
|
|
3483
|
+
var version = "3.0.0-dev.1788538586-ecea9ed57";
|
|
3462
3484
|
export {
|
|
3463
3485
|
API,
|
|
3464
3486
|
ApplicationCommandsAPI,
|