@discordjs/core 3.0.0-dev.1737633902-687e2ae67 → 3.0.0-dev.1737720294-670667d65

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/index.js CHANGED
@@ -64,8 +64,9 @@ var ApplicationCommandsAPI = class {
64
64
  * @param query - The query options for fetching commands
65
65
  * @param options - The options for fetching commands
66
66
  */
67
- async getGlobalCommands(applicationId, query = {}, { signal } = {}) {
67
+ async getGlobalCommands(applicationId, query = {}, { auth, signal } = {}) {
68
68
  return this.rest.get(import_v10.Routes.applicationCommands(applicationId), {
69
+ auth,
69
70
  query: (0, import_rest.makeURLSearchParams)(query),
70
71
  signal
71
72
  });
@@ -78,8 +79,9 @@ var ApplicationCommandsAPI = class {
78
79
  * @param body - The data for creating the command
79
80
  * @param options - The options for creating the command
80
81
  */
81
- async createGlobalCommand(applicationId, body, { signal } = {}) {
82
+ async createGlobalCommand(applicationId, body, { auth, signal } = {}) {
82
83
  return this.rest.post(import_v10.Routes.applicationCommands(applicationId), {
84
+ auth,
83
85
  body,
84
86
  signal
85
87
  });
@@ -92,8 +94,9 @@ var ApplicationCommandsAPI = class {
92
94
  * @param commandId - The command id to fetch
93
95
  * @param options - The options for fetching the command
94
96
  */
95
- async getGlobalCommand(applicationId, commandId, { signal } = {}) {
97
+ async getGlobalCommand(applicationId, commandId, { auth, signal } = {}) {
96
98
  return this.rest.get(import_v10.Routes.applicationCommand(applicationId, commandId), {
99
+ auth,
97
100
  signal
98
101
  });
99
102
  }
@@ -106,8 +109,9 @@ var ApplicationCommandsAPI = class {
106
109
  * @param body - The data for editing the command
107
110
  * @param options - The options for editing the command
108
111
  */
109
- async editGlobalCommand(applicationId, commandId, body, { signal } = {}) {
112
+ async editGlobalCommand(applicationId, commandId, body, { auth, signal } = {}) {
110
113
  return this.rest.patch(import_v10.Routes.applicationCommand(applicationId, commandId), {
114
+ auth,
111
115
  body,
112
116
  signal
113
117
  });
@@ -120,8 +124,8 @@ var ApplicationCommandsAPI = class {
120
124
  * @param commandId - The id of the command to delete
121
125
  * @param options - The options for deleting a command
122
126
  */
123
- async deleteGlobalCommand(applicationId, commandId, { signal } = {}) {
124
- await this.rest.delete(import_v10.Routes.applicationCommand(applicationId, commandId), { signal });
127
+ async deleteGlobalCommand(applicationId, commandId, { auth, signal } = {}) {
128
+ await this.rest.delete(import_v10.Routes.applicationCommand(applicationId, commandId), { auth, signal });
125
129
  }
126
130
  /**
127
131
  * Overwrites global commands
@@ -131,8 +135,9 @@ var ApplicationCommandsAPI = class {
131
135
  * @param body - The data for overwriting commands
132
136
  * @param options - The options for overwriting commands
133
137
  */
134
- async bulkOverwriteGlobalCommands(applicationId, body, { signal } = {}) {
138
+ async bulkOverwriteGlobalCommands(applicationId, body, { auth, signal } = {}) {
135
139
  return this.rest.put(import_v10.Routes.applicationCommands(applicationId), {
140
+ auth,
136
141
  body,
137
142
  signal
138
143
  });
@@ -146,8 +151,9 @@ var ApplicationCommandsAPI = class {
146
151
  * @param query - The data for fetching commands
147
152
  * @param options - The options for fetching commands
148
153
  */
149
- async getGuildCommands(applicationId, guildId, query = {}, { signal } = {}) {
154
+ async getGuildCommands(applicationId, guildId, query = {}, { auth, signal } = {}) {
150
155
  return this.rest.get(import_v10.Routes.applicationGuildCommands(applicationId, guildId), {
156
+ auth,
151
157
  query: (0, import_rest.makeURLSearchParams)(query),
152
158
  signal
153
159
  });
@@ -161,8 +167,9 @@ var ApplicationCommandsAPI = class {
161
167
  * @param body - The data for creating the command
162
168
  * @param options - The options for creating the command
163
169
  */
164
- async createGuildCommand(applicationId, guildId, body, { signal } = {}) {
170
+ async createGuildCommand(applicationId, guildId, body, { auth, signal } = {}) {
165
171
  return this.rest.post(import_v10.Routes.applicationGuildCommands(applicationId, guildId), {
172
+ auth,
166
173
  body,
167
174
  signal
168
175
  });
@@ -176,8 +183,9 @@ var ApplicationCommandsAPI = class {
176
183
  * @param commandId - The command id to fetch
177
184
  * @param options - The options for fetching the command
178
185
  */
179
- async getGuildCommand(applicationId, guildId, commandId, { signal } = {}) {
186
+ async getGuildCommand(applicationId, guildId, commandId, { auth, signal } = {}) {
180
187
  return this.rest.get(import_v10.Routes.applicationGuildCommand(applicationId, guildId, commandId), {
188
+ auth,
181
189
  signal
182
190
  });
183
191
  }
@@ -191,8 +199,9 @@ var ApplicationCommandsAPI = class {
191
199
  * @param body - The data for editing the command
192
200
  * @param options - The options for editing the command
193
201
  */
194
- async editGuildCommand(applicationId, guildId, commandId, body, { signal } = {}) {
202
+ async editGuildCommand(applicationId, guildId, commandId, body, { auth, signal } = {}) {
195
203
  return this.rest.patch(import_v10.Routes.applicationGuildCommand(applicationId, guildId, commandId), {
204
+ auth,
196
205
  body,
197
206
  signal
198
207
  });
@@ -206,8 +215,8 @@ var ApplicationCommandsAPI = class {
206
215
  * @param commandId - The id of the command to delete
207
216
  * @param options - The options for deleting the command
208
217
  */
209
- async deleteGuildCommand(applicationId, guildId, commandId, { signal } = {}) {
210
- await this.rest.delete(import_v10.Routes.applicationGuildCommand(applicationId, guildId, commandId), { signal });
218
+ async deleteGuildCommand(applicationId, guildId, commandId, { auth, signal } = {}) {
219
+ await this.rest.delete(import_v10.Routes.applicationGuildCommand(applicationId, guildId, commandId), { auth, signal });
211
220
  }
212
221
  /**
213
222
  * Bulk overwrites guild commands
@@ -218,8 +227,9 @@ var ApplicationCommandsAPI = class {
218
227
  * @param body - The data for overwriting commands
219
228
  * @param options - The options for overwriting the commands
220
229
  */
221
- async bulkOverwriteGuildCommands(applicationId, guildId, body, { signal } = {}) {
230
+ async bulkOverwriteGuildCommands(applicationId, guildId, body, { auth, signal } = {}) {
222
231
  return this.rest.put(import_v10.Routes.applicationGuildCommands(applicationId, guildId), {
232
+ auth,
223
233
  body,
224
234
  signal
225
235
  });
@@ -233,8 +243,9 @@ var ApplicationCommandsAPI = class {
233
243
  * @param commandId - The command id to get the permissions for
234
244
  * @param options - The option for fetching the command
235
245
  */
236
- async getGuildCommandPermissions(applicationId, guildId, commandId, { signal } = {}) {
246
+ async getGuildCommandPermissions(applicationId, guildId, commandId, { auth, signal } = {}) {
237
247
  return this.rest.get(import_v10.Routes.applicationCommandPermissions(applicationId, guildId, commandId), {
248
+ auth,
238
249
  signal
239
250
  });
240
251
  }
@@ -246,8 +257,9 @@ var ApplicationCommandsAPI = class {
246
257
  * @param guildId - The guild id to get the permissions for
247
258
  * @param options - The options for fetching permissions
248
259
  */
249
- async getGuildCommandsPermissions(applicationId, guildId, { signal } = {}) {
260
+ async getGuildCommandsPermissions(applicationId, guildId, { auth, signal } = {}) {
250
261
  return this.rest.get(import_v10.Routes.guildApplicationCommandsPermissions(applicationId, guildId), {
262
+ auth,
251
263
  signal
252
264
  });
253
265
  }
@@ -287,8 +299,8 @@ var ApplicationsAPI = class {
287
299
  * @see {@link https://discord.com/developers/docs/resources/application#get-current-application}
288
300
  * @param options - The options for fetching the application
289
301
  */
290
- async getCurrent({ signal } = {}) {
291
- return this.rest.get(import_v102.Routes.currentApplication(), { signal });
302
+ async getCurrent({ auth, signal } = {}) {
303
+ return this.rest.get(import_v102.Routes.currentApplication(), { auth, signal });
292
304
  }
293
305
  /**
294
306
  * Edits properties of the application associated with the requesting bot user.
@@ -297,8 +309,9 @@ var ApplicationsAPI = class {
297
309
  * @param body - The new application data
298
310
  * @param options - The options for editing the application
299
311
  */
300
- async editCurrent(body, { signal } = {}) {
312
+ async editCurrent(body, { auth, signal } = {}) {
301
313
  return this.rest.patch(import_v102.Routes.currentApplication(), {
314
+ auth,
302
315
  body,
303
316
  signal
304
317
  });
@@ -310,8 +323,9 @@ var ApplicationsAPI = class {
310
323
  * @param applicationId - The id of the application to fetch the emojis of
311
324
  * @param options - The options for fetching the emojis
312
325
  */
313
- async getEmojis(applicationId, { signal } = {}) {
326
+ async getEmojis(applicationId, { auth, signal } = {}) {
314
327
  return this.rest.get(import_v102.Routes.applicationEmojis(applicationId), {
328
+ auth,
315
329
  signal
316
330
  });
317
331
  }
@@ -323,8 +337,9 @@ var ApplicationsAPI = class {
323
337
  * @param emojiId - The id of the emoji to fetch
324
338
  * @param options - The options for fetching the emoji
325
339
  */
326
- async getEmoji(applicationId, emojiId, { signal } = {}) {
340
+ async getEmoji(applicationId, emojiId, { auth, signal } = {}) {
327
341
  return this.rest.get(import_v102.Routes.applicationEmoji(applicationId, emojiId), {
342
+ auth,
328
343
  signal
329
344
  });
330
345
  }
@@ -336,8 +351,9 @@ var ApplicationsAPI = class {
336
351
  * @param body - The data for creating the emoji
337
352
  * @param options - The options for creating the emoji
338
353
  */
339
- async createEmoji(applicationId, body, { signal } = {}) {
354
+ async createEmoji(applicationId, body, { auth, signal } = {}) {
340
355
  return this.rest.post(import_v102.Routes.applicationEmojis(applicationId), {
356
+ auth,
341
357
  body,
342
358
  signal
343
359
  });
@@ -351,8 +367,9 @@ var ApplicationsAPI = class {
351
367
  * @param body - The data for editing the emoji
352
368
  * @param options - The options for editing the emoji
353
369
  */
354
- async editEmoji(applicationId, emojiId, body, { signal } = {}) {
370
+ async editEmoji(applicationId, emojiId, body, { auth, signal } = {}) {
355
371
  return this.rest.patch(import_v102.Routes.applicationEmoji(applicationId, emojiId), {
372
+ auth,
356
373
  body,
357
374
  signal
358
375
  });
@@ -365,8 +382,8 @@ var ApplicationsAPI = class {
365
382
  * @param emojiId - The id of the emoji to delete
366
383
  * @param options - The options for deleting the emoji
367
384
  */
368
- async deleteEmoji(applicationId, emojiId, { signal } = {}) {
369
- await this.rest.delete(import_v102.Routes.applicationEmoji(applicationId, emojiId), { signal });
385
+ async deleteEmoji(applicationId, emojiId, { auth, signal } = {}) {
386
+ await this.rest.delete(import_v102.Routes.applicationEmoji(applicationId, emojiId), { auth, signal });
370
387
  }
371
388
  };
372
389
 
@@ -388,8 +405,9 @@ var ChannelsAPI = class {
388
405
  * @param body - The data for sending the message
389
406
  * @param options - The options for sending the message
390
407
  */
391
- async createMessage(channelId, { files, ...body }, { signal } = {}) {
408
+ async createMessage(channelId, { files, ...body }, { auth, signal } = {}) {
392
409
  return this.rest.post(import_v103.Routes.channelMessages(channelId), {
410
+ auth,
393
411
  files,
394
412
  body,
395
413
  signal
@@ -404,8 +422,9 @@ var ChannelsAPI = class {
404
422
  * @param body - The data for editing the message
405
423
  * @param options - The options for editing the message
406
424
  */
407
- async editMessage(channelId, messageId, { files, ...body }, { signal } = {}) {
425
+ async editMessage(channelId, messageId, { files, ...body }, { auth, signal } = {}) {
408
426
  return this.rest.patch(import_v103.Routes.channelMessage(channelId, messageId), {
427
+ auth,
409
428
  files,
410
429
  body,
411
430
  signal
@@ -429,8 +448,9 @@ var ChannelsAPI = class {
429
448
  * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
430
449
  * ```
431
450
  */
432
- async getMessageReactions(channelId, messageId, emoji, query = {}, { signal } = {}) {
451
+ async getMessageReactions(channelId, messageId, emoji, query = {}, { auth, signal } = {}) {
433
452
  return this.rest.get(import_v103.Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), {
453
+ auth,
434
454
  query: (0, import_rest2.makeURLSearchParams)(query),
435
455
  signal
436
456
  });
@@ -452,8 +472,9 @@ var ChannelsAPI = class {
452
472
  * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
453
473
  * ```
454
474
  */
455
- async deleteOwnMessageReaction(channelId, messageId, emoji, { signal } = {}) {
475
+ async deleteOwnMessageReaction(channelId, messageId, emoji, { auth, signal } = {}) {
456
476
  await this.rest.delete(import_v103.Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), {
477
+ auth,
457
478
  signal
458
479
  });
459
480
  }
@@ -475,8 +496,9 @@ var ChannelsAPI = class {
475
496
  * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
476
497
  * ```
477
498
  */
478
- async deleteUserMessageReaction(channelId, messageId, emoji, userId, { signal } = {}) {
499
+ async deleteUserMessageReaction(channelId, messageId, emoji, userId, { auth, signal } = {}) {
479
500
  await this.rest.delete(import_v103.Routes.channelMessageUserReaction(channelId, messageId, encodeURIComponent(emoji), userId), {
501
+ auth,
480
502
  signal
481
503
  });
482
504
  }
@@ -488,8 +510,8 @@ var ChannelsAPI = class {
488
510
  * @param messageId - The id of the message to delete the reactions for
489
511
  * @param options - The options for deleting the reactions
490
512
  */
491
- async deleteAllMessageReactions(channelId, messageId, { signal } = {}) {
492
- await this.rest.delete(import_v103.Routes.channelMessageAllReactions(channelId, messageId), { signal });
513
+ async deleteAllMessageReactions(channelId, messageId, { auth, signal } = {}) {
514
+ await this.rest.delete(import_v103.Routes.channelMessageAllReactions(channelId, messageId), { auth, signal });
493
515
  }
494
516
  /**
495
517
  * Deletes all reactions of an emoji for a message
@@ -508,8 +530,11 @@ var ChannelsAPI = class {
508
530
  * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
509
531
  * ```
510
532
  */
511
- async deleteAllMessageReactionsForEmoji(channelId, messageId, emoji, { signal } = {}) {
512
- await this.rest.delete(import_v103.Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
533
+ async deleteAllMessageReactionsForEmoji(channelId, messageId, emoji, { auth, signal } = {}) {
534
+ await this.rest.delete(import_v103.Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), {
535
+ auth,
536
+ signal
537
+ });
513
538
  }
514
539
  /**
515
540
  * Adds a reaction to a message
@@ -528,8 +553,11 @@ var ChannelsAPI = class {
528
553
  * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
529
554
  * ```
530
555
  */
531
- async addMessageReaction(channelId, messageId, emoji, { signal } = {}) {
532
- await this.rest.put(import_v103.Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
556
+ async addMessageReaction(channelId, messageId, emoji, { auth, signal } = {}) {
557
+ await this.rest.put(import_v103.Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), {
558
+ auth,
559
+ signal
560
+ });
533
561
  }
534
562
  /**
535
563
  * Fetches a channel
@@ -538,8 +566,8 @@ var ChannelsAPI = class {
538
566
  * @param channelId - The id of the channel
539
567
  * @param options - The options for fetching the channel
540
568
  */
541
- async get(channelId, { signal } = {}) {
542
- return this.rest.get(import_v103.Routes.channel(channelId), { signal });
569
+ async get(channelId, { auth, signal } = {}) {
570
+ return this.rest.get(import_v103.Routes.channel(channelId), { auth, signal });
543
571
  }
544
572
  /**
545
573
  * Edits a channel
@@ -549,8 +577,8 @@ var ChannelsAPI = class {
549
577
  * @param body - The new channel data
550
578
  * @param options - The options for editing the channel
551
579
  */
552
- async edit(channelId, body, { signal } = {}) {
553
- return this.rest.patch(import_v103.Routes.channel(channelId), { body, signal });
580
+ async edit(channelId, body, { auth, signal } = {}) {
581
+ return this.rest.patch(import_v103.Routes.channel(channelId), { auth, body, signal });
554
582
  }
555
583
  /**
556
584
  * Deletes a channel
@@ -559,8 +587,8 @@ var ChannelsAPI = class {
559
587
  * @param channelId - The id of the channel to delete
560
588
  * @param options - The options for deleting the channel
561
589
  */
562
- async delete(channelId, { signal } = {}) {
563
- return this.rest.delete(import_v103.Routes.channel(channelId), { signal });
590
+ async delete(channelId, { auth, signal } = {}) {
591
+ return this.rest.delete(import_v103.Routes.channel(channelId), { auth, signal });
564
592
  }
565
593
  /**
566
594
  * Fetches the messages of a channel
@@ -570,8 +598,9 @@ var ChannelsAPI = class {
570
598
  * @param query - The query options for fetching messages
571
599
  * @param options - The options for fetching the messages
572
600
  */
573
- async getMessages(channelId, query = {}, { signal } = {}) {
601
+ async getMessages(channelId, query = {}, { auth, signal } = {}) {
574
602
  return this.rest.get(import_v103.Routes.channelMessages(channelId), {
603
+ auth,
575
604
  query: (0, import_rest2.makeURLSearchParams)(query),
576
605
  signal
577
606
  });
@@ -583,8 +612,8 @@ var ChannelsAPI = class {
583
612
  * @param channelId - The id of the channel to show the typing indicator in
584
613
  * @param options - The options for showing the typing indicator
585
614
  */
586
- async showTyping(channelId, { signal } = {}) {
587
- await this.rest.post(import_v103.Routes.channelTyping(channelId), { signal });
615
+ async showTyping(channelId, { auth, signal } = {}) {
616
+ await this.rest.post(import_v103.Routes.channelTyping(channelId), { auth, signal });
588
617
  }
589
618
  /**
590
619
  * Fetches the pinned messages of a channel
@@ -593,8 +622,8 @@ var ChannelsAPI = class {
593
622
  * @param channelId - The id of the channel to fetch pinned messages from
594
623
  * @param options - The options for fetching the pinned messages
595
624
  */
596
- async getPins(channelId, { signal } = {}) {
597
- return this.rest.get(import_v103.Routes.channelPins(channelId), { signal });
625
+ async getPins(channelId, { auth, signal } = {}) {
626
+ return this.rest.get(import_v103.Routes.channelPins(channelId), { auth, signal });
598
627
  }
599
628
  /**
600
629
  * Pins a message in a channel
@@ -604,8 +633,8 @@ var ChannelsAPI = class {
604
633
  * @param messageId - The id of the message to pin
605
634
  * @param options - The options for pinning the message
606
635
  */
607
- async pinMessage(channelId, messageId, { reason, signal } = {}) {
608
- await this.rest.put(import_v103.Routes.channelPin(channelId, messageId), { reason, signal });
636
+ async pinMessage(channelId, messageId, { auth, reason, signal } = {}) {
637
+ await this.rest.put(import_v103.Routes.channelPin(channelId, messageId), { auth, reason, signal });
609
638
  }
610
639
  /**
611
640
  * Deletes a message
@@ -615,8 +644,8 @@ var ChannelsAPI = class {
615
644
  * @param messageId - The id of the message to delete
616
645
  * @param options - The options for deleting the message
617
646
  */
618
- async deleteMessage(channelId, messageId, { reason, signal } = {}) {
619
- await this.rest.delete(import_v103.Routes.channelMessage(channelId, messageId), { reason, signal });
647
+ async deleteMessage(channelId, messageId, { auth, reason, signal } = {}) {
648
+ await this.rest.delete(import_v103.Routes.channelMessage(channelId, messageId), { auth, reason, signal });
620
649
  }
621
650
  /**
622
651
  * Bulk deletes messages
@@ -626,8 +655,8 @@ var ChannelsAPI = class {
626
655
  * @param messageIds - The ids of the messages to delete
627
656
  * @param options - The options for deleting the messages
628
657
  */
629
- async bulkDeleteMessages(channelId, messageIds, { reason, signal } = {}) {
630
- await this.rest.post(import_v103.Routes.channelBulkDelete(channelId), { reason, body: { messages: messageIds }, signal });
658
+ async bulkDeleteMessages(channelId, messageIds, { auth, reason, signal } = {}) {
659
+ await this.rest.post(import_v103.Routes.channelBulkDelete(channelId), { auth, reason, body: { messages: messageIds }, signal });
631
660
  }
632
661
  /**
633
662
  * Fetches a message
@@ -637,8 +666,9 @@ var ChannelsAPI = class {
637
666
  * @param messageId - The id of the message to fetch
638
667
  * @param options - The options for fetching the message
639
668
  */
640
- async getMessage(channelId, messageId, { signal } = {}) {
669
+ async getMessage(channelId, messageId, { auth, signal } = {}) {
641
670
  return this.rest.get(import_v103.Routes.channelMessage(channelId, messageId), {
671
+ auth,
642
672
  signal
643
673
  });
644
674
  }
@@ -650,8 +680,9 @@ var ChannelsAPI = class {
650
680
  * @param messageId - The id of the message to crosspost
651
681
  * @param options - The options for crossposting the message
652
682
  */
653
- async crosspostMessage(channelId, messageId, { signal } = {}) {
683
+ async crosspostMessage(channelId, messageId, { auth, signal } = {}) {
654
684
  return this.rest.post(import_v103.Routes.channelMessageCrosspost(channelId, messageId), {
685
+ auth,
655
686
  signal
656
687
  });
657
688
  }
@@ -663,8 +694,8 @@ var ChannelsAPI = class {
663
694
  * @param messageId - The id of the message to unpin
664
695
  * @param options - The options for unpinning the message
665
696
  */
666
- async unpinMessage(channelId, messageId, { reason, signal } = {}) {
667
- await this.rest.delete(import_v103.Routes.channelPin(channelId, messageId), { reason, signal });
697
+ async unpinMessage(channelId, messageId, { auth, reason, signal } = {}) {
698
+ await this.rest.delete(import_v103.Routes.channelPin(channelId, messageId), { auth, reason, signal });
668
699
  }
669
700
  /**
670
701
  * Follows an announcement channel
@@ -674,8 +705,9 @@ var ChannelsAPI = class {
674
705
  * @param webhookChannelId - The id of the webhook channel to follow the announcements in
675
706
  * @param options - The options for following the announcement channel
676
707
  */
677
- async followAnnouncements(channelId, webhookChannelId, { reason, signal } = {}) {
708
+ async followAnnouncements(channelId, webhookChannelId, { auth, reason, signal } = {}) {
678
709
  return this.rest.post(import_v103.Routes.channelFollowers(channelId), {
710
+ auth,
679
711
  body: { webhook_channel_id: webhookChannelId },
680
712
  reason,
681
713
  signal
@@ -689,8 +721,9 @@ var ChannelsAPI = class {
689
721
  * @param body - The data for creating the invite
690
722
  * @param options - The options for creating the invite
691
723
  */
692
- async createInvite(channelId, body, { reason, signal } = {}) {
724
+ async createInvite(channelId, body, { auth, reason, signal } = {}) {
693
725
  return this.rest.post(import_v103.Routes.channelInvites(channelId), {
726
+ auth,
694
727
  reason,
695
728
  body,
696
729
  signal
@@ -703,8 +736,8 @@ var ChannelsAPI = class {
703
736
  * @param channelId - The id of the channel to fetch invites from
704
737
  * @param options - The options for fetching the invites
705
738
  */
706
- async getInvites(channelId, { signal } = {}) {
707
- return this.rest.get(import_v103.Routes.channelInvites(channelId), { signal });
739
+ async getInvites(channelId, { auth, signal } = {}) {
740
+ return this.rest.get(import_v103.Routes.channelInvites(channelId), { auth, signal });
708
741
  }
709
742
  /**
710
743
  * Creates a new thread
@@ -716,8 +749,9 @@ var ChannelsAPI = class {
716
749
  * @param messageId - The id of the message to start the thread from
717
750
  * @param options - The options for starting the thread
718
751
  */
719
- async createThread(channelId, body, messageId, { signal } = {}) {
752
+ async createThread(channelId, body, messageId, { auth, signal } = {}) {
720
753
  return this.rest.post(import_v103.Routes.threads(channelId, messageId), {
754
+ auth,
721
755
  body,
722
756
  signal
723
757
  });
@@ -730,13 +764,13 @@ var ChannelsAPI = class {
730
764
  * @param body - The data for starting the thread
731
765
  * @param options - The options for starting the thread
732
766
  */
733
- async createForumThread(channelId, { message, ...optionsBody }, { signal } = {}) {
767
+ async createForumThread(channelId, { message, ...optionsBody }, { auth, signal } = {}) {
734
768
  const { files, ...messageBody } = message;
735
769
  const body = {
736
770
  ...optionsBody,
737
771
  message: messageBody
738
772
  };
739
- return this.rest.post(import_v103.Routes.threads(channelId), { files, body, signal });
773
+ return this.rest.post(import_v103.Routes.threads(channelId), { auth, files, body, signal });
740
774
  }
741
775
  /**
742
776
  * Fetches the archived threads of a channel
@@ -748,8 +782,9 @@ var ChannelsAPI = class {
748
782
  * @param query - The options for fetching archived threads
749
783
  * @param options - The options for fetching archived threads
750
784
  */
751
- async getArchivedThreads(channelId, archivedStatus, query = {}, { signal } = {}) {
785
+ async getArchivedThreads(channelId, archivedStatus, query = {}, { auth, signal } = {}) {
752
786
  return this.rest.get(import_v103.Routes.channelThreads(channelId, archivedStatus), {
787
+ auth,
753
788
  query: (0, import_rest2.makeURLSearchParams)(query),
754
789
  signal
755
790
  });
@@ -762,8 +797,9 @@ var ChannelsAPI = class {
762
797
  * @param query - The options for fetching joined archived threads
763
798
  * @param options - The options for fetching joined archived threads
764
799
  */
765
- async getJoinedPrivateArchivedThreads(channelId, query = {}, { signal } = {}) {
800
+ async getJoinedPrivateArchivedThreads(channelId, query = {}, { auth, signal } = {}) {
766
801
  return this.rest.get(import_v103.Routes.channelJoinedArchivedThreads(channelId), {
802
+ auth,
767
803
  query: (0, import_rest2.makeURLSearchParams)(query),
768
804
  signal
769
805
  });
@@ -776,8 +812,9 @@ var ChannelsAPI = class {
776
812
  * @param body - The data for creating the webhook
777
813
  * @param options - The options for creating the webhook
778
814
  */
779
- async createWebhook(channelId, body, { reason, signal } = {}) {
815
+ async createWebhook(channelId, body, { auth, reason, signal } = {}) {
780
816
  return this.rest.post(import_v103.Routes.channelWebhooks(channelId), {
817
+ auth,
781
818
  reason,
782
819
  body,
783
820
  signal
@@ -788,9 +825,13 @@ var ChannelsAPI = class {
788
825
  *
789
826
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-channel-webhooks}
790
827
  * @param channelId - The id of the channel
828
+ * @param options - The options for fetching the webhooks
791
829
  */
792
- async getWebhooks(channelId) {
793
- return this.rest.get(import_v103.Routes.channelWebhooks(channelId));
830
+ async getWebhooks(channelId, { auth, signal } = {}) {
831
+ return this.rest.get(import_v103.Routes.channelWebhooks(channelId), {
832
+ auth,
833
+ signal
834
+ });
794
835
  }
795
836
  /**
796
837
  * Edits the permission overwrite for a user or role in a channel
@@ -801,8 +842,9 @@ var ChannelsAPI = class {
801
842
  * @param body - The data for editing the permission overwrite
802
843
  * @param options - The options for editing the permission overwrite
803
844
  */
804
- async editPermissionOverwrite(channelId, overwriteId, body, { reason, signal } = {}) {
845
+ async editPermissionOverwrite(channelId, overwriteId, body, { auth, reason, signal } = {}) {
805
846
  await this.rest.put(import_v103.Routes.channelPermission(channelId, overwriteId), {
847
+ auth,
806
848
  reason,
807
849
  body,
808
850
  signal
@@ -816,8 +858,9 @@ var ChannelsAPI = class {
816
858
  * @param overwriteId - The id of the user or role to delete the permission overwrite for
817
859
  * @param options - The options for deleting the permission overwrite
818
860
  */
819
- async deletePermissionOverwrite(channelId, overwriteId, { reason, signal } = {}) {
861
+ async deletePermissionOverwrite(channelId, overwriteId, { auth, reason, signal } = {}) {
820
862
  await this.rest.delete(import_v103.Routes.channelPermission(channelId, overwriteId), {
863
+ auth,
821
864
  reason,
822
865
  signal
823
866
  });
@@ -830,8 +873,9 @@ var ChannelsAPI = class {
830
873
  * @param body - The data for sending the soundboard sound
831
874
  * @param options - The options for sending the soundboard sound
832
875
  */
833
- async sendSoundboardSound(channelId, body, { signal } = {}) {
876
+ async sendSoundboardSound(channelId, body, { auth, signal } = {}) {
834
877
  return this.rest.post(import_v103.Routes.sendSoundboardSound(channelId), {
878
+ auth,
835
879
  body,
836
880
  signal
837
881
  });
@@ -856,8 +900,9 @@ var GuildsAPI = class {
856
900
  * @param query - The query options for fetching the guild
857
901
  * @param options - The options for fetching the guild
858
902
  */
859
- async get(guildId, query = {}, { signal } = {}) {
903
+ async get(guildId, query = {}, { auth, signal } = {}) {
860
904
  return this.rest.get(import_v104.Routes.guild(guildId), {
905
+ auth,
861
906
  query: (0, import_rest3.makeURLSearchParams)(query),
862
907
  signal
863
908
  });
@@ -869,8 +914,9 @@ var GuildsAPI = class {
869
914
  * @param guildId - The id of the guild to fetch the preview from
870
915
  * @param options - The options for fetching the guild preview
871
916
  */
872
- async getPreview(guildId, { signal } = {}) {
917
+ async getPreview(guildId, { auth, signal } = {}) {
873
918
  return this.rest.get(import_v104.Routes.guildPreview(guildId), {
919
+ auth,
874
920
  signal
875
921
  });
876
922
  }
@@ -881,8 +927,8 @@ var GuildsAPI = class {
881
927
  * @param body - The guild to create
882
928
  * @param options - The options for creating the guild
883
929
  */
884
- async create(body, { signal } = {}) {
885
- return this.rest.post(import_v104.Routes.guilds(), { body, signal });
930
+ async create(body, { auth, signal } = {}) {
931
+ return this.rest.post(import_v104.Routes.guilds(), { auth, body, signal });
886
932
  }
887
933
  /**
888
934
  * Edits a guild
@@ -892,8 +938,9 @@ var GuildsAPI = class {
892
938
  * @param body - The new guild data
893
939
  * @param options - The options for editing the guild
894
940
  */
895
- async edit(guildId, body, { reason, signal } = {}) {
941
+ async edit(guildId, body, { auth, reason, signal } = {}) {
896
942
  return this.rest.patch(import_v104.Routes.guild(guildId), {
943
+ auth,
897
944
  reason,
898
945
  body,
899
946
  signal
@@ -906,8 +953,8 @@ var GuildsAPI = class {
906
953
  * @param guildId - The id of the guild to delete
907
954
  * @param options - The options for deleting this guild
908
955
  */
909
- async delete(guildId, { signal, reason } = {}) {
910
- await this.rest.delete(import_v104.Routes.guild(guildId), { reason, signal });
956
+ async delete(guildId, { auth, reason, signal } = {}) {
957
+ await this.rest.delete(import_v104.Routes.guild(guildId), { auth, reason, signal });
911
958
  }
912
959
  /**
913
960
  * Adds user to the guild
@@ -918,22 +965,24 @@ var GuildsAPI = class {
918
965
  * @param body - The data for adding users to the guild
919
966
  * @param options - The options for adding users to the guild
920
967
  */
921
- async addMember(guildId, userId, body, { signal } = {}) {
968
+ async addMember(guildId, userId, body, { auth, signal } = {}) {
922
969
  return this.rest.put(import_v104.Routes.guildMember(guildId, userId), {
970
+ auth,
923
971
  body,
924
972
  signal
925
973
  });
926
974
  }
927
975
  /**
928
- * Fetches all the members of a guild
976
+ * Fetches members of a guild.
929
977
  *
930
978
  * @see {@link https://discord.com/developers/docs/resources/guild#list-guild-members}
931
979
  * @param guildId - The id of the guild
932
980
  * @param query - The query for fetching the guild members
933
981
  * @param options - The options for fetching the guild members
934
982
  */
935
- async getMembers(guildId, query = {}, { signal } = {}) {
983
+ async getMembers(guildId, query = {}, { auth, signal } = {}) {
936
984
  return this.rest.get(import_v104.Routes.guildMembers(guildId), {
985
+ auth,
937
986
  query: (0, import_rest3.makeURLSearchParams)(query),
938
987
  signal
939
988
  });
@@ -945,8 +994,9 @@ var GuildsAPI = class {
945
994
  * @param guildId - The id of the guild to fetch the channels from
946
995
  * @param options - The options for fetching the guild channels
947
996
  */
948
- async getChannels(guildId, { signal } = {}) {
997
+ async getChannels(guildId, { auth, signal } = {}) {
949
998
  return this.rest.get(import_v104.Routes.guildChannels(guildId), {
999
+ auth,
950
1000
  signal
951
1001
  });
952
1002
  }
@@ -958,8 +1008,9 @@ var GuildsAPI = class {
958
1008
  * @param body - The data to create the new channel
959
1009
  * @param options - The options for creating the guild channel
960
1010
  */
961
- async createChannel(guildId, body, { reason, signal } = {}) {
1011
+ async createChannel(guildId, body, { auth, reason, signal } = {}) {
962
1012
  return this.rest.post(import_v104.Routes.guildChannels(guildId), {
1013
+ auth,
963
1014
  reason,
964
1015
  body,
965
1016
  signal
@@ -973,8 +1024,8 @@ var GuildsAPI = class {
973
1024
  * @param body - The data to edit the channel positions with
974
1025
  * @param options - The options for editing the guild channel positions
975
1026
  */
976
- async setChannelPositions(guildId, body, { reason, signal } = {}) {
977
- await this.rest.patch(import_v104.Routes.guildChannels(guildId), { reason, body, signal });
1027
+ async setChannelPositions(guildId, body, { auth, reason, signal } = {}) {
1028
+ await this.rest.patch(import_v104.Routes.guildChannels(guildId), { auth, reason, body, signal });
978
1029
  }
979
1030
  /**
980
1031
  * Fetches the active threads in a guild
@@ -983,8 +1034,8 @@ var GuildsAPI = class {
983
1034
  * @param guildId - The id of the guild to fetch the active threads from
984
1035
  * @param options - The options for fetching the active threads
985
1036
  */
986
- async getActiveThreads(guildId, { signal } = {}) {
987
- return this.rest.get(import_v104.Routes.guildActiveThreads(guildId), { signal });
1037
+ async getActiveThreads(guildId, { auth, signal } = {}) {
1038
+ return this.rest.get(import_v104.Routes.guildActiveThreads(guildId), { auth, signal });
988
1039
  }
989
1040
  /**
990
1041
  * Fetches a guild member ban
@@ -994,8 +1045,8 @@ var GuildsAPI = class {
994
1045
  * @param userId - The id of the user to fetch the ban
995
1046
  * @param options - The options for fetching the ban
996
1047
  */
997
- async getMemberBan(guildId, userId, { signal } = {}) {
998
- return this.rest.get(import_v104.Routes.guildBan(guildId, userId), { signal });
1048
+ async getMemberBan(guildId, userId, { auth, signal } = {}) {
1049
+ return this.rest.get(import_v104.Routes.guildBan(guildId, userId), { auth, signal });
999
1050
  }
1000
1051
  /**
1001
1052
  * Fetches guild member bans
@@ -1005,8 +1056,9 @@ var GuildsAPI = class {
1005
1056
  * @param query - The query options for fetching the bans
1006
1057
  * @param options - The options for fetching the bans
1007
1058
  */
1008
- async getMemberBans(guildId, query = {}, { signal } = {}) {
1059
+ async getMemberBans(guildId, query = {}, { auth, signal } = {}) {
1009
1060
  return this.rest.get(import_v104.Routes.guildBans(guildId), {
1061
+ auth,
1010
1062
  query: (0, import_rest3.makeURLSearchParams)(query),
1011
1063
  signal
1012
1064
  });
@@ -1020,8 +1072,8 @@ var GuildsAPI = class {
1020
1072
  * @param body - The payload for banning the user
1021
1073
  * @param options - The options for banning the user
1022
1074
  */
1023
- async banUser(guildId, userId, body = {}, { reason, signal } = {}) {
1024
- await this.rest.put(import_v104.Routes.guildBan(guildId, userId), { reason, body, signal });
1075
+ async banUser(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1076
+ await this.rest.put(import_v104.Routes.guildBan(guildId, userId), { auth, reason, body, signal });
1025
1077
  }
1026
1078
  /**
1027
1079
  * Unbans a user from a guild
@@ -1031,8 +1083,8 @@ var GuildsAPI = class {
1031
1083
  * @param userId - The id of the user to unban
1032
1084
  * @param options - The options for unbanning the user
1033
1085
  */
1034
- async unbanUser(guildId, userId, { reason, signal } = {}) {
1035
- await this.rest.delete(import_v104.Routes.guildBan(guildId, userId), { reason, signal });
1086
+ async unbanUser(guildId, userId, { auth, reason, signal } = {}) {
1087
+ await this.rest.delete(import_v104.Routes.guildBan(guildId, userId), { auth, reason, signal });
1036
1088
  }
1037
1089
  /**
1038
1090
  * Bulk ban users from a guild
@@ -1042,8 +1094,9 @@ var GuildsAPI = class {
1042
1094
  * @param body - The data for bulk banning users
1043
1095
  * @param options - The options for bulk banning users
1044
1096
  */
1045
- async bulkBanUsers(guildId, body, { reason, signal } = {}) {
1097
+ async bulkBanUsers(guildId, body, { auth, reason, signal } = {}) {
1046
1098
  return this.rest.post(import_v104.Routes.guildBulkBan(guildId), {
1099
+ auth,
1047
1100
  reason,
1048
1101
  body,
1049
1102
  signal
@@ -1056,8 +1109,8 @@ var GuildsAPI = class {
1056
1109
  * @param guildId - The id of the guild to fetch the roles from
1057
1110
  * @param options - The options for fetching the guild roles
1058
1111
  */
1059
- async getRoles(guildId, { signal } = {}) {
1060
- return this.rest.get(import_v104.Routes.guildRoles(guildId), { signal });
1112
+ async getRoles(guildId, { auth, signal } = {}) {
1113
+ return this.rest.get(import_v104.Routes.guildRoles(guildId), { auth, signal });
1061
1114
  }
1062
1115
  /**
1063
1116
  * Get a role in a guild
@@ -1067,8 +1120,8 @@ var GuildsAPI = class {
1067
1120
  * @param roleId - The id of the role to fetch
1068
1121
  * @param options - The options for fetching the guild role
1069
1122
  */
1070
- async getRole(guildId, roleId, { signal } = {}) {
1071
- return this.rest.get(import_v104.Routes.guildRole(guildId, roleId), { signal });
1123
+ async getRole(guildId, roleId, { auth, signal } = {}) {
1124
+ return this.rest.get(import_v104.Routes.guildRole(guildId, roleId), { auth, signal });
1072
1125
  }
1073
1126
  /**
1074
1127
  * Creates a guild role
@@ -1078,8 +1131,13 @@ var GuildsAPI = class {
1078
1131
  * @param body - The data to create the role with
1079
1132
  * @param options - The options for creating the guild role
1080
1133
  */
1081
- async createRole(guildId, body, { reason, signal } = {}) {
1082
- return this.rest.post(import_v104.Routes.guildRoles(guildId), { reason, body, signal });
1134
+ async createRole(guildId, body, { auth, reason, signal } = {}) {
1135
+ return this.rest.post(import_v104.Routes.guildRoles(guildId), {
1136
+ auth,
1137
+ reason,
1138
+ body,
1139
+ signal
1140
+ });
1083
1141
  }
1084
1142
  /**
1085
1143
  * Sets role positions in a guild
@@ -1089,8 +1147,9 @@ var GuildsAPI = class {
1089
1147
  * @param body - The data for setting a role position
1090
1148
  * @param options - The options for setting role positions
1091
1149
  */
1092
- async setRolePositions(guildId, body, { reason, signal } = {}) {
1150
+ async setRolePositions(guildId, body, { auth, reason, signal } = {}) {
1093
1151
  return this.rest.patch(import_v104.Routes.guildRoles(guildId), {
1152
+ auth,
1094
1153
  reason,
1095
1154
  body,
1096
1155
  signal
@@ -1105,8 +1164,9 @@ var GuildsAPI = class {
1105
1164
  * @param body - data for editing the role
1106
1165
  * @param options - The options for editing the guild role
1107
1166
  */
1108
- async editRole(guildId, roleId, body, { reason, signal } = {}) {
1167
+ async editRole(guildId, roleId, body, { auth, reason, signal } = {}) {
1109
1168
  return this.rest.patch(import_v104.Routes.guildRole(guildId, roleId), {
1169
+ auth,
1110
1170
  reason,
1111
1171
  body,
1112
1172
  signal
@@ -1120,8 +1180,8 @@ var GuildsAPI = class {
1120
1180
  * @param roleId - The id of the role to delete
1121
1181
  * @param options - The options for deleting the guild role
1122
1182
  */
1123
- async deleteRole(guildId, roleId, { reason, signal } = {}) {
1124
- await this.rest.delete(import_v104.Routes.guildRole(guildId, roleId), { reason, signal });
1183
+ async deleteRole(guildId, roleId, { auth, reason, signal } = {}) {
1184
+ await this.rest.delete(import_v104.Routes.guildRole(guildId, roleId), { auth, reason, signal });
1125
1185
  }
1126
1186
  /**
1127
1187
  * Edits the multi-factor-authentication (MFA) level of a guild
@@ -1131,8 +1191,9 @@ var GuildsAPI = class {
1131
1191
  * @param level - The new MFA level
1132
1192
  * @param options - The options for editing the MFA level
1133
1193
  */
1134
- async editMFALevel(guildId, level, { reason, signal } = {}) {
1194
+ async editMFALevel(guildId, level, { auth, reason, signal } = {}) {
1135
1195
  return this.rest.post(import_v104.Routes.guildMFA(guildId), {
1196
+ auth,
1136
1197
  reason,
1137
1198
  signal,
1138
1199
  body: { level }
@@ -1146,8 +1207,9 @@ var GuildsAPI = class {
1146
1207
  * @param query - The query options for fetching the number of pruned members
1147
1208
  * @param options - The options for fetching the number of pruned members
1148
1209
  */
1149
- async getPruneCount(guildId, query = {}, { signal } = {}) {
1210
+ async getPruneCount(guildId, query = {}, { auth, signal } = {}) {
1150
1211
  return this.rest.get(import_v104.Routes.guildPrune(guildId), {
1212
+ auth,
1151
1213
  signal,
1152
1214
  query: (0, import_rest3.makeURLSearchParams)(query)
1153
1215
  });
@@ -1160,8 +1222,9 @@ var GuildsAPI = class {
1160
1222
  * @param body - The options for pruning members
1161
1223
  * @param options - The options for initiating the prune
1162
1224
  */
1163
- async beginPrune(guildId, body = {}, { reason, signal } = {}) {
1225
+ async beginPrune(guildId, body = {}, { auth, reason, signal } = {}) {
1164
1226
  return this.rest.post(import_v104.Routes.guildPrune(guildId), {
1227
+ auth,
1165
1228
  body,
1166
1229
  reason,
1167
1230
  signal
@@ -1174,8 +1237,11 @@ var GuildsAPI = class {
1174
1237
  * @param guildId - The id of the guild to fetch the voice regions from
1175
1238
  * @param options - The options for fetching the voice regions
1176
1239
  */
1177
- async getVoiceRegions(guildId, { signal } = {}) {
1178
- return this.rest.get(import_v104.Routes.guildVoiceRegions(guildId), { signal });
1240
+ async getVoiceRegions(guildId, { auth, signal } = {}) {
1241
+ return this.rest.get(import_v104.Routes.guildVoiceRegions(guildId), {
1242
+ auth,
1243
+ signal
1244
+ });
1179
1245
  }
1180
1246
  /**
1181
1247
  * Fetches the invites for a guild
@@ -1184,8 +1250,8 @@ var GuildsAPI = class {
1184
1250
  * @param guildId - The id of the guild to fetch the invites from
1185
1251
  * @param options - The options for fetching the invites
1186
1252
  */
1187
- async getInvites(guildId, { signal } = {}) {
1188
- return this.rest.get(import_v104.Routes.guildInvites(guildId), { signal });
1253
+ async getInvites(guildId, { auth, signal } = {}) {
1254
+ return this.rest.get(import_v104.Routes.guildInvites(guildId), { auth, signal });
1189
1255
  }
1190
1256
  /**
1191
1257
  * Fetches the integrations for a guild
@@ -1194,8 +1260,11 @@ var GuildsAPI = class {
1194
1260
  * @param guildId - The id of the guild to fetch the integrations from
1195
1261
  * @param options - The options for fetching the integrations
1196
1262
  */
1197
- async getIntegrations(guildId, { signal } = {}) {
1198
- return this.rest.get(import_v104.Routes.guildIntegrations(guildId), { signal });
1263
+ async getIntegrations(guildId, { auth, signal } = {}) {
1264
+ return this.rest.get(import_v104.Routes.guildIntegrations(guildId), {
1265
+ auth,
1266
+ signal
1267
+ });
1199
1268
  }
1200
1269
  /**
1201
1270
  * Deletes an integration from a guild
@@ -1205,8 +1274,8 @@ var GuildsAPI = class {
1205
1274
  * @param integrationId - The id of the integration to delete
1206
1275
  * @param options - The options for deleting the integration
1207
1276
  */
1208
- async deleteIntegration(guildId, integrationId, { reason, signal } = {}) {
1209
- await this.rest.delete(import_v104.Routes.guildIntegration(guildId, integrationId), { reason, signal });
1277
+ async deleteIntegration(guildId, integrationId, { auth, reason, signal } = {}) {
1278
+ await this.rest.delete(import_v104.Routes.guildIntegration(guildId, integrationId), { auth, reason, signal });
1210
1279
  }
1211
1280
  /**
1212
1281
  * Fetches the widget settings for a guild
@@ -1215,8 +1284,9 @@ var GuildsAPI = class {
1215
1284
  * @param guildId - The id of the guild to fetch the widget settings from
1216
1285
  * @param options - The options for fetching the widget settings
1217
1286
  */
1218
- async getWidgetSettings(guildId, { signal } = {}) {
1287
+ async getWidgetSettings(guildId, { auth, signal } = {}) {
1219
1288
  return this.rest.get(import_v104.Routes.guildWidgetSettings(guildId), {
1289
+ auth,
1220
1290
  signal
1221
1291
  });
1222
1292
  }
@@ -1228,8 +1298,9 @@ var GuildsAPI = class {
1228
1298
  * @param body - The new widget settings data
1229
1299
  * @param options - The options for editing the widget settings
1230
1300
  */
1231
- async editWidgetSettings(guildId, body, { reason, signal } = {}) {
1301
+ async editWidgetSettings(guildId, body, { auth, reason, signal } = {}) {
1232
1302
  return this.rest.patch(import_v104.Routes.guildWidgetSettings(guildId), {
1303
+ auth,
1233
1304
  reason,
1234
1305
  body,
1235
1306
  signal
@@ -1242,8 +1313,8 @@ var GuildsAPI = class {
1242
1313
  * @param guildId - The id of the guild to fetch the widget from
1243
1314
  * @param options - The options for fetching the widget
1244
1315
  */
1245
- async getWidget(guildId, { signal } = {}) {
1246
- return this.rest.get(import_v104.Routes.guildWidgetJSON(guildId), { signal });
1316
+ async getWidget(guildId, { auth, signal } = {}) {
1317
+ return this.rest.get(import_v104.Routes.guildWidgetJSON(guildId), { auth, signal });
1247
1318
  }
1248
1319
  /**
1249
1320
  * Fetches the vanity url for a guild
@@ -1252,8 +1323,8 @@ var GuildsAPI = class {
1252
1323
  * @param guildId - The id of the guild to fetch the vanity url from
1253
1324
  * @param options - The options for fetching the vanity url
1254
1325
  */
1255
- async getVanityURL(guildId, { signal } = {}) {
1256
- return this.rest.get(import_v104.Routes.guildVanityUrl(guildId), { signal });
1326
+ async getVanityURL(guildId, { auth, signal } = {}) {
1327
+ return this.rest.get(import_v104.Routes.guildVanityUrl(guildId), { auth, signal });
1257
1328
  }
1258
1329
  /**
1259
1330
  * Fetches the widget image for a guild
@@ -1263,8 +1334,9 @@ var GuildsAPI = class {
1263
1334
  * @param style - The style of the widget image
1264
1335
  * @param options - The options for fetching the widget image
1265
1336
  */
1266
- async getWidgetImage(guildId, style, { signal } = {}) {
1337
+ async getWidgetImage(guildId, style, { auth, signal } = {}) {
1267
1338
  return this.rest.get(import_v104.Routes.guildWidgetImage(guildId), {
1339
+ auth,
1268
1340
  query: (0, import_rest3.makeURLSearchParams)({ style }),
1269
1341
  signal
1270
1342
  });
@@ -1276,8 +1348,11 @@ var GuildsAPI = class {
1276
1348
  * @param guildId - The id of the guild to fetch the welcome screen from
1277
1349
  * @param options - The options for fetching the welcome screen
1278
1350
  */
1279
- async getWelcomeScreen(guildId, { signal } = {}) {
1280
- return this.rest.get(import_v104.Routes.guildWelcomeScreen(guildId), { signal });
1351
+ async getWelcomeScreen(guildId, { auth, signal } = {}) {
1352
+ return this.rest.get(import_v104.Routes.guildWelcomeScreen(guildId), {
1353
+ auth,
1354
+ signal
1355
+ });
1281
1356
  }
1282
1357
  /**
1283
1358
  * Edits the welcome screen for a guild
@@ -1287,8 +1362,9 @@ var GuildsAPI = class {
1287
1362
  * @param body - The new welcome screen data
1288
1363
  * @param options - The options for editing the welcome screen
1289
1364
  */
1290
- async editWelcomeScreen(guildId, body, { reason, signal } = {}) {
1365
+ async editWelcomeScreen(guildId, body, { auth, reason, signal } = {}) {
1291
1366
  return this.rest.patch(import_v104.Routes.guildWelcomeScreen(guildId), {
1367
+ auth,
1292
1368
  reason,
1293
1369
  body,
1294
1370
  signal
@@ -1301,8 +1377,8 @@ var GuildsAPI = class {
1301
1377
  * @param guildId - The id of the guild to fetch the emojis from
1302
1378
  * @param options - The options for fetching the emojis
1303
1379
  */
1304
- async getEmojis(guildId, { signal } = {}) {
1305
- return this.rest.get(import_v104.Routes.guildEmojis(guildId), { signal });
1380
+ async getEmojis(guildId, { auth, signal } = {}) {
1381
+ return this.rest.get(import_v104.Routes.guildEmojis(guildId), { auth, signal });
1306
1382
  }
1307
1383
  /**
1308
1384
  * Fetches an emoji for a guild
@@ -1312,8 +1388,8 @@ var GuildsAPI = class {
1312
1388
  * @param emojiId - The id of the emoji to fetch
1313
1389
  * @param options - The options for fetching the emoji
1314
1390
  */
1315
- async getEmoji(guildId, emojiId, { signal } = {}) {
1316
- return this.rest.get(import_v104.Routes.guildEmoji(guildId, emojiId), { signal });
1391
+ async getEmoji(guildId, emojiId, { auth, signal } = {}) {
1392
+ return this.rest.get(import_v104.Routes.guildEmoji(guildId, emojiId), { auth, signal });
1317
1393
  }
1318
1394
  /**
1319
1395
  * Creates a new emoji for a guild
@@ -1323,8 +1399,9 @@ var GuildsAPI = class {
1323
1399
  * @param body - The data for creating the emoji
1324
1400
  * @param options - The options for creating the emoji
1325
1401
  */
1326
- async createEmoji(guildId, body, { reason, signal } = {}) {
1402
+ async createEmoji(guildId, body, { auth, reason, signal } = {}) {
1327
1403
  return this.rest.post(import_v104.Routes.guildEmojis(guildId), {
1404
+ auth,
1328
1405
  reason,
1329
1406
  body,
1330
1407
  signal
@@ -1339,8 +1416,9 @@ var GuildsAPI = class {
1339
1416
  * @param body - The data for editing the emoji
1340
1417
  * @param options - The options for editing the emoji
1341
1418
  */
1342
- async editEmoji(guildId, emojiId, body, { reason, signal } = {}) {
1419
+ async editEmoji(guildId, emojiId, body, { auth, reason, signal } = {}) {
1343
1420
  return this.rest.patch(import_v104.Routes.guildEmoji(guildId, emojiId), {
1421
+ auth,
1344
1422
  reason,
1345
1423
  body,
1346
1424
  signal
@@ -1354,8 +1432,8 @@ var GuildsAPI = class {
1354
1432
  * @param emojiId - The id of the emoji to delete
1355
1433
  * @param options - The options for deleting the emoji
1356
1434
  */
1357
- async deleteEmoji(guildId, emojiId, { reason, signal } = {}) {
1358
- await this.rest.delete(import_v104.Routes.guildEmoji(guildId, emojiId), { reason, signal });
1435
+ async deleteEmoji(guildId, emojiId, { auth, reason, signal } = {}) {
1436
+ await this.rest.delete(import_v104.Routes.guildEmoji(guildId, emojiId), { auth, reason, signal });
1359
1437
  }
1360
1438
  /**
1361
1439
  * Fetches all scheduled events for a guild
@@ -1365,8 +1443,9 @@ var GuildsAPI = class {
1365
1443
  * @param query - The query options for fetching the scheduled events
1366
1444
  * @param options - The options for fetching the scheduled events
1367
1445
  */
1368
- async getScheduledEvents(guildId, query = {}, { signal } = {}) {
1446
+ async getScheduledEvents(guildId, query = {}, { auth, signal } = {}) {
1369
1447
  return this.rest.get(import_v104.Routes.guildScheduledEvents(guildId), {
1448
+ auth,
1370
1449
  query: (0, import_rest3.makeURLSearchParams)(query),
1371
1450
  signal
1372
1451
  });
@@ -1379,8 +1458,9 @@ var GuildsAPI = class {
1379
1458
  * @param body - The data to create the event with
1380
1459
  * @param options - The options for creating the scheduled event
1381
1460
  */
1382
- async createScheduledEvent(guildId, body, { reason, signal } = {}) {
1461
+ async createScheduledEvent(guildId, body, { auth, reason, signal } = {}) {
1383
1462
  return this.rest.post(import_v104.Routes.guildScheduledEvents(guildId), {
1463
+ auth,
1384
1464
  reason,
1385
1465
  body,
1386
1466
  signal
@@ -1395,8 +1475,9 @@ var GuildsAPI = class {
1395
1475
  * @param query - The options for fetching the scheduled event
1396
1476
  * @param options - The options for fetching the scheduled event
1397
1477
  */
1398
- async getScheduledEvent(guildId, eventId, query = {}, { signal } = {}) {
1478
+ async getScheduledEvent(guildId, eventId, query = {}, { auth, signal } = {}) {
1399
1479
  return this.rest.get(import_v104.Routes.guildScheduledEvent(guildId, eventId), {
1480
+ auth,
1400
1481
  query: (0, import_rest3.makeURLSearchParams)(query),
1401
1482
  signal
1402
1483
  });
@@ -1410,8 +1491,9 @@ var GuildsAPI = class {
1410
1491
  * @param body - The new event data
1411
1492
  * @param options - The options for editing the scheduled event
1412
1493
  */
1413
- async editScheduledEvent(guildId, eventId, body, { reason, signal } = {}) {
1494
+ async editScheduledEvent(guildId, eventId, body, { auth, reason, signal } = {}) {
1414
1495
  return this.rest.patch(import_v104.Routes.guildScheduledEvent(guildId, eventId), {
1496
+ auth,
1415
1497
  reason,
1416
1498
  body,
1417
1499
  signal
@@ -1425,8 +1507,8 @@ var GuildsAPI = class {
1425
1507
  * @param eventId - The id of the scheduled event to delete
1426
1508
  * @param options - The options for deleting the scheduled event
1427
1509
  */
1428
- async deleteScheduledEvent(guildId, eventId, { reason, signal } = {}) {
1429
- await this.rest.delete(import_v104.Routes.guildScheduledEvent(guildId, eventId), { reason, signal });
1510
+ async deleteScheduledEvent(guildId, eventId, { auth, reason, signal } = {}) {
1511
+ await this.rest.delete(import_v104.Routes.guildScheduledEvent(guildId, eventId), { auth, reason, signal });
1430
1512
  }
1431
1513
  /**
1432
1514
  * Gets all users that are interested in a scheduled event
@@ -1437,8 +1519,9 @@ var GuildsAPI = class {
1437
1519
  * @param query - The options for fetching the scheduled event users
1438
1520
  * @param options - The options for fetching the scheduled event users
1439
1521
  */
1440
- async getScheduledEventUsers(guildId, eventId, query = {}, { signal } = {}) {
1522
+ async getScheduledEventUsers(guildId, eventId, query = {}, { auth, signal } = {}) {
1441
1523
  return this.rest.get(import_v104.Routes.guildScheduledEventUsers(guildId, eventId), {
1524
+ auth,
1442
1525
  query: (0, import_rest3.makeURLSearchParams)(query),
1443
1526
  signal
1444
1527
  });
@@ -1450,8 +1533,8 @@ var GuildsAPI = class {
1450
1533
  * @param guildId - The id of the guild to fetch the templates from
1451
1534
  * @param options - The options for fetching the templates
1452
1535
  */
1453
- async getTemplates(guildId, { signal } = {}) {
1454
- return this.rest.get(import_v104.Routes.guildTemplates(guildId), { signal });
1536
+ async getTemplates(guildId, { auth, signal } = {}) {
1537
+ return this.rest.get(import_v104.Routes.guildTemplates(guildId), { auth, signal });
1455
1538
  }
1456
1539
  /**
1457
1540
  * Syncs a template for a guild
@@ -1461,8 +1544,9 @@ var GuildsAPI = class {
1461
1544
  * @param templateCode - The code of the template to sync
1462
1545
  * @param options - The options for syncing the template
1463
1546
  */
1464
- async syncTemplate(guildId, templateCode, { signal } = {}) {
1547
+ async syncTemplate(guildId, templateCode, { auth, signal } = {}) {
1465
1548
  return this.rest.put(import_v104.Routes.guildTemplate(guildId, templateCode), {
1549
+ auth,
1466
1550
  signal
1467
1551
  });
1468
1552
  }
@@ -1475,8 +1559,9 @@ var GuildsAPI = class {
1475
1559
  * @param body - The data for editing the template
1476
1560
  * @param options - The options for editing the template
1477
1561
  */
1478
- async editTemplate(guildId, templateCode, body, { signal } = {}) {
1562
+ async editTemplate(guildId, templateCode, body, { auth, signal } = {}) {
1479
1563
  return this.rest.patch(import_v104.Routes.guildTemplate(guildId, templateCode), {
1564
+ auth,
1480
1565
  body,
1481
1566
  signal
1482
1567
  });
@@ -1489,8 +1574,8 @@ var GuildsAPI = class {
1489
1574
  * @param templateCode - The code of the template to delete
1490
1575
  * @param options - The options for deleting the template
1491
1576
  */
1492
- async deleteTemplate(guildId, templateCode, { signal } = {}) {
1493
- await this.rest.delete(import_v104.Routes.guildTemplate(guildId, templateCode), { signal });
1577
+ async deleteTemplate(guildId, templateCode, { auth, signal } = {}) {
1578
+ await this.rest.delete(import_v104.Routes.guildTemplate(guildId, templateCode), { auth, signal });
1494
1579
  }
1495
1580
  /**
1496
1581
  * Fetches all the stickers for a guild
@@ -1499,8 +1584,8 @@ var GuildsAPI = class {
1499
1584
  * @param guildId - The id of the guild to fetch the stickers from
1500
1585
  * @param options - The options for fetching the stickers
1501
1586
  */
1502
- async getStickers(guildId, { signal } = {}) {
1503
- return this.rest.get(import_v104.Routes.guildStickers(guildId), { signal });
1587
+ async getStickers(guildId, { auth, signal } = {}) {
1588
+ return this.rest.get(import_v104.Routes.guildStickers(guildId), { auth, signal });
1504
1589
  }
1505
1590
  /**
1506
1591
  * Fetches a sticker for a guild
@@ -1510,8 +1595,11 @@ var GuildsAPI = class {
1510
1595
  * @param stickerId - The id of the sticker to fetch
1511
1596
  * @param options - The options for fetching the sticker
1512
1597
  */
1513
- async getSticker(guildId, stickerId, { signal } = {}) {
1514
- return this.rest.get(import_v104.Routes.guildSticker(guildId, stickerId), { signal });
1598
+ async getSticker(guildId, stickerId, { auth, signal } = {}) {
1599
+ return this.rest.get(import_v104.Routes.guildSticker(guildId, stickerId), {
1600
+ auth,
1601
+ signal
1602
+ });
1515
1603
  }
1516
1604
  /**
1517
1605
  * Creates a sticker for a guild
@@ -1521,9 +1609,10 @@ var GuildsAPI = class {
1521
1609
  * @param body - The data for creating the sticker
1522
1610
  * @param options - The options for creating the sticker
1523
1611
  */
1524
- async createSticker(guildId, { file, ...body }, { reason, signal } = {}) {
1612
+ async createSticker(guildId, { file, ...body }, { auth, reason, signal } = {}) {
1525
1613
  const fileData = { ...file, key: "file" };
1526
1614
  return this.rest.post(import_v104.Routes.guildStickers(guildId), {
1615
+ auth,
1527
1616
  appendToFormData: true,
1528
1617
  body,
1529
1618
  files: [fileData],
@@ -1540,8 +1629,9 @@ var GuildsAPI = class {
1540
1629
  * @param body - The data for editing the sticker
1541
1630
  * @param options - The options for editing the sticker
1542
1631
  */
1543
- async editSticker(guildId, stickerId, body, { reason, signal } = {}) {
1632
+ async editSticker(guildId, stickerId, body, { auth, reason, signal } = {}) {
1544
1633
  return this.rest.patch(import_v104.Routes.guildSticker(guildId, stickerId), {
1634
+ auth,
1545
1635
  reason,
1546
1636
  body,
1547
1637
  signal
@@ -1555,8 +1645,8 @@ var GuildsAPI = class {
1555
1645
  * @param stickerId - The id of the sticker to delete
1556
1646
  * @param options - The options for deleting the sticker
1557
1647
  */
1558
- async deleteSticker(guildId, stickerId, { reason, signal } = {}) {
1559
- await this.rest.delete(import_v104.Routes.guildSticker(guildId, stickerId), { reason, signal });
1648
+ async deleteSticker(guildId, stickerId, { auth, reason, signal } = {}) {
1649
+ await this.rest.delete(import_v104.Routes.guildSticker(guildId, stickerId), { auth, reason, signal });
1560
1650
  }
1561
1651
  /**
1562
1652
  * Fetches the audit logs for a guild
@@ -1566,8 +1656,9 @@ var GuildsAPI = class {
1566
1656
  * @param query - The query options for fetching the audit logs
1567
1657
  * @param options - The options for fetching the audit logs
1568
1658
  */
1569
- async getAuditLogs(guildId, query = {}, { signal } = {}) {
1659
+ async getAuditLogs(guildId, query = {}, { auth, signal } = {}) {
1570
1660
  return this.rest.get(import_v104.Routes.guildAuditLog(guildId), {
1661
+ auth,
1571
1662
  query: (0, import_rest3.makeURLSearchParams)(query),
1572
1663
  signal
1573
1664
  });
@@ -1579,8 +1670,9 @@ var GuildsAPI = class {
1579
1670
  * @param guildId - The id of the guild to fetch the auto moderation rules from
1580
1671
  * @param options - The options for fetching the auto moderation rules
1581
1672
  */
1582
- async getAutoModerationRules(guildId, { signal } = {}) {
1673
+ async getAutoModerationRules(guildId, { auth, signal } = {}) {
1583
1674
  return this.rest.get(import_v104.Routes.guildAutoModerationRules(guildId), {
1675
+ auth,
1584
1676
  signal
1585
1677
  });
1586
1678
  }
@@ -1592,8 +1684,9 @@ var GuildsAPI = class {
1592
1684
  * @param ruleId - The id of the auto moderation rule to fetch
1593
1685
  * @param options - The options for fetching the auto moderation rule
1594
1686
  */
1595
- async getAutoModerationRule(guildId, ruleId, { signal } = {}) {
1687
+ async getAutoModerationRule(guildId, ruleId, { auth, signal } = {}) {
1596
1688
  return this.rest.get(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), {
1689
+ auth,
1597
1690
  signal
1598
1691
  });
1599
1692
  }
@@ -1605,8 +1698,9 @@ var GuildsAPI = class {
1605
1698
  * @param body - The data for creating the auto moderation rule
1606
1699
  * @param options - The options for creating the auto moderation rule
1607
1700
  */
1608
- async createAutoModerationRule(guildId, body, { reason, signal } = {}) {
1701
+ async createAutoModerationRule(guildId, body, { auth, reason, signal } = {}) {
1609
1702
  return this.rest.post(import_v104.Routes.guildAutoModerationRules(guildId), {
1703
+ auth,
1610
1704
  reason,
1611
1705
  body,
1612
1706
  signal
@@ -1621,8 +1715,9 @@ var GuildsAPI = class {
1621
1715
  * @param body - The data for editing the auto moderation rule
1622
1716
  * @param options - The options for editing the auto moderation rule
1623
1717
  */
1624
- async editAutoModerationRule(guildId, ruleId, body, { reason, signal } = {}) {
1718
+ async editAutoModerationRule(guildId, ruleId, body, { auth, reason, signal } = {}) {
1625
1719
  return this.rest.patch(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), {
1720
+ auth,
1626
1721
  reason,
1627
1722
  body,
1628
1723
  signal
@@ -1636,8 +1731,8 @@ var GuildsAPI = class {
1636
1731
  * @param ruleId - The id of the auto moderation rule to delete
1637
1732
  * @param options - The options for deleting the auto moderation rule
1638
1733
  */
1639
- async deleteAutoModerationRule(guildId, ruleId, { reason, signal } = {}) {
1640
- await this.rest.delete(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), { reason, signal });
1734
+ async deleteAutoModerationRule(guildId, ruleId, { auth, reason, signal } = {}) {
1735
+ await this.rest.delete(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), { auth, reason, signal });
1641
1736
  }
1642
1737
  /**
1643
1738
  * Fetches a guild member
@@ -1647,8 +1742,8 @@ var GuildsAPI = class {
1647
1742
  * @param userId - The id of the user
1648
1743
  * @param options - The options for fetching the guild member
1649
1744
  */
1650
- async getMember(guildId, userId, { signal } = {}) {
1651
- return this.rest.get(import_v104.Routes.guildMember(guildId, userId), { signal });
1745
+ async getMember(guildId, userId, { auth, signal } = {}) {
1746
+ return this.rest.get(import_v104.Routes.guildMember(guildId, userId), { auth, signal });
1652
1747
  }
1653
1748
  /**
1654
1749
  * Searches for guild members
@@ -1658,8 +1753,9 @@ var GuildsAPI = class {
1658
1753
  * @param query - The query to search for
1659
1754
  * @param options - The options for searching for guild members
1660
1755
  */
1661
- async searchForMembers(guildId, query, { signal } = {}) {
1756
+ async searchForMembers(guildId, query, { auth, signal } = {}) {
1662
1757
  return this.rest.get(import_v104.Routes.guildMembersSearch(guildId), {
1758
+ auth,
1663
1759
  query: (0, import_rest3.makeURLSearchParams)(query),
1664
1760
  signal
1665
1761
  });
@@ -1673,8 +1769,9 @@ var GuildsAPI = class {
1673
1769
  * @param body - The data for editing the guild member
1674
1770
  * @param options - The options for editing the guild member
1675
1771
  */
1676
- async editMember(guildId, userId, body = {}, { reason, signal } = {}) {
1772
+ async editMember(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1677
1773
  return this.rest.patch(import_v104.Routes.guildMember(guildId, userId), {
1774
+ auth,
1678
1775
  reason,
1679
1776
  body,
1680
1777
  signal
@@ -1688,8 +1785,8 @@ var GuildsAPI = class {
1688
1785
  * @param userId - The id of the user
1689
1786
  * @param options - The options for removing the guild member
1690
1787
  */
1691
- async removeMember(guildId, userId, { reason, signal } = {}) {
1692
- return this.rest.delete(import_v104.Routes.guildMember(guildId, userId), { reason, signal });
1788
+ async removeMember(guildId, userId, { auth, reason, signal } = {}) {
1789
+ return this.rest.delete(import_v104.Routes.guildMember(guildId, userId), { auth, reason, signal });
1693
1790
  }
1694
1791
  /**
1695
1792
  * Adds a role to a guild member
@@ -1700,8 +1797,8 @@ var GuildsAPI = class {
1700
1797
  * @param roleId - The id of the role
1701
1798
  * @param options - The options for adding a role to a guild member
1702
1799
  */
1703
- async addRoleToMember(guildId, userId, roleId, { reason, signal } = {}) {
1704
- await this.rest.put(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { reason, signal });
1800
+ async addRoleToMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1801
+ await this.rest.put(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1705
1802
  }
1706
1803
  /**
1707
1804
  * Removes a role from a guild member
@@ -1712,8 +1809,8 @@ var GuildsAPI = class {
1712
1809
  * @param roleId - The id of the role
1713
1810
  * @param options - The options for removing a role from a guild member
1714
1811
  */
1715
- async removeRoleFromMember(guildId, userId, roleId, { reason, signal } = {}) {
1716
- await this.rest.delete(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { reason, signal });
1812
+ async removeRoleFromMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1813
+ await this.rest.delete(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1717
1814
  }
1718
1815
  /**
1719
1816
  * Fetches a guild template
@@ -1722,8 +1819,8 @@ var GuildsAPI = class {
1722
1819
  * @param templateCode - The code of the template
1723
1820
  * @param options - The options for fetching the guild template
1724
1821
  */
1725
- async getTemplate(templateCode, { signal } = {}) {
1726
- return this.rest.get(import_v104.Routes.template(templateCode), { signal });
1822
+ async getTemplate(templateCode, { auth, signal } = {}) {
1823
+ return this.rest.get(import_v104.Routes.template(templateCode), { auth, signal });
1727
1824
  }
1728
1825
  /**
1729
1826
  * Creates a new template
@@ -1733,17 +1830,22 @@ var GuildsAPI = class {
1733
1830
  * @param body - The data for creating the template
1734
1831
  * @param options - The options for creating the template
1735
1832
  */
1736
- async createTemplate(templateCode, body, { signal } = {}) {
1737
- return this.rest.post(import_v104.Routes.template(templateCode), { body, signal });
1833
+ async createTemplate(templateCode, body, { auth, signal } = {}) {
1834
+ return this.rest.post(import_v104.Routes.template(templateCode), {
1835
+ auth,
1836
+ body,
1837
+ signal
1838
+ });
1738
1839
  }
1739
1840
  /**
1740
1841
  * Fetches webhooks for a guild
1741
1842
  *
1742
1843
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-guild-webhooks}
1743
1844
  * @param id - The id of the guild
1845
+ * @param options - The options for fetching the webhooks
1744
1846
  */
1745
- async getWebhooks(id) {
1746
- return this.rest.get(import_v104.Routes.guildWebhooks(id));
1847
+ async getWebhooks(id, { auth, signal } = {}) {
1848
+ return this.rest.get(import_v104.Routes.guildWebhooks(id), { auth, signal });
1747
1849
  }
1748
1850
  /**
1749
1851
  * Fetches a guild onboarding
@@ -1752,8 +1854,8 @@ var GuildsAPI = class {
1752
1854
  * @param guildId - The id of the guild
1753
1855
  * @param options - The options for fetching the guild onboarding
1754
1856
  */
1755
- async getOnboarding(guildId, { signal } = {}) {
1756
- return this.rest.get(import_v104.Routes.guildOnboarding(guildId), { signal });
1857
+ async getOnboarding(guildId, { auth, signal } = {}) {
1858
+ return this.rest.get(import_v104.Routes.guildOnboarding(guildId), { auth, signal });
1757
1859
  }
1758
1860
  /**
1759
1861
  * Edits a guild onboarding
@@ -1763,8 +1865,9 @@ var GuildsAPI = class {
1763
1865
  * @param body - The data for editing the guild onboarding
1764
1866
  * @param options - The options for editing the guild onboarding
1765
1867
  */
1766
- async editOnboarding(guildId, body, { reason, signal } = {}) {
1868
+ async editOnboarding(guildId, body, { auth, reason, signal } = {}) {
1767
1869
  return this.rest.put(import_v104.Routes.guildOnboarding(guildId), {
1870
+ auth,
1768
1871
  reason,
1769
1872
  body,
1770
1873
  signal
@@ -1777,8 +1880,9 @@ var GuildsAPI = class {
1777
1880
  * @param guildId - The id of the guild to fetch the soundboard sounds for
1778
1881
  * @param options - The options for fetching the soundboard sounds
1779
1882
  */
1780
- async getSoundboardSounds(guildId, { signal } = {}) {
1883
+ async getSoundboardSounds(guildId, { auth, signal } = {}) {
1781
1884
  return this.rest.get(import_v104.Routes.guildSoundboardSounds(guildId), {
1885
+ auth,
1782
1886
  signal
1783
1887
  });
1784
1888
  }
@@ -1790,8 +1894,9 @@ var GuildsAPI = class {
1790
1894
  * @param soundId - The id of the soundboard sound to fetch
1791
1895
  * @param options - The options for fetching the soundboard sound
1792
1896
  */
1793
- async getSoundboardSound(guildId, soundId, { signal } = {}) {
1897
+ async getSoundboardSound(guildId, soundId, { auth, signal } = {}) {
1794
1898
  return this.rest.get(import_v104.Routes.guildSoundboardSound(guildId, soundId), {
1899
+ auth,
1795
1900
  signal
1796
1901
  });
1797
1902
  }
@@ -1803,8 +1908,9 @@ var GuildsAPI = class {
1803
1908
  * @param body - The data for creating the soundboard sound
1804
1909
  * @param options - The options for creating the soundboard sound
1805
1910
  */
1806
- async createSoundboardSound(guildId, body, { reason, signal } = {}) {
1911
+ async createSoundboardSound(guildId, body, { auth, reason, signal } = {}) {
1807
1912
  return this.rest.post(import_v104.Routes.guildSoundboardSounds(guildId), {
1913
+ auth,
1808
1914
  body,
1809
1915
  reason,
1810
1916
  signal
@@ -1819,8 +1925,9 @@ var GuildsAPI = class {
1819
1925
  * @param body - The data for editing the soundboard sound
1820
1926
  * @param options - The options for editing the soundboard sound
1821
1927
  */
1822
- async editSoundboardSound(guildId, soundId, body, { reason, signal } = {}) {
1928
+ async editSoundboardSound(guildId, soundId, body, { auth, reason, signal } = {}) {
1823
1929
  return this.rest.patch(import_v104.Routes.guildSoundboardSound(guildId, soundId), {
1930
+ auth,
1824
1931
  body,
1825
1932
  reason,
1826
1933
  signal
@@ -1834,8 +1941,8 @@ var GuildsAPI = class {
1834
1941
  * @param soundId - The id of the soundboard sound to delete
1835
1942
  * @param options - The options for deleting the soundboard sound
1836
1943
  */
1837
- async deleteSoundboardSound(guildId, soundId, { reason, signal } = {}) {
1838
- await this.rest.delete(import_v104.Routes.guildSoundboardSound(guildId, soundId), { reason, signal });
1944
+ async deleteSoundboardSound(guildId, soundId, { auth, reason, signal } = {}) {
1945
+ await this.rest.delete(import_v104.Routes.guildSoundboardSound(guildId, soundId), { auth, reason, signal });
1839
1946
  }
1840
1947
  };
1841
1948
 
@@ -1981,6 +2088,17 @@ var InteractionsAPI = class {
1981
2088
  });
1982
2089
  return with_response ? response : void 0;
1983
2090
  }
2091
+ async launchActivity(interactionId, interactionToken, { with_response } = {}, { signal } = {}) {
2092
+ const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2093
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2094
+ auth: false,
2095
+ body: {
2096
+ type: import_v105.InteractionResponseType.LaunchActivity
2097
+ },
2098
+ signal
2099
+ });
2100
+ return with_response ? response : void 0;
2101
+ }
1984
2102
  };
1985
2103
 
1986
2104
  // src/api/invite.ts
@@ -2001,8 +2119,9 @@ var InvitesAPI = class {
2001
2119
  * @param query - The options for fetching the invite
2002
2120
  * @param options - The options for fetching the invite
2003
2121
  */
2004
- async get(code, query = {}, { signal } = {}) {
2122
+ async get(code, query = {}, { auth, signal } = {}) {
2005
2123
  return this.rest.get(import_v106.Routes.invite(code), {
2124
+ auth,
2006
2125
  query: (0, import_rest5.makeURLSearchParams)(query),
2007
2126
  signal
2008
2127
  });
@@ -2014,8 +2133,8 @@ var InvitesAPI = class {
2014
2133
  * @param code - The invite code
2015
2134
  * @param options - The options for deleting the invite
2016
2135
  */
2017
- async delete(code, { reason, signal } = {}) {
2018
- await this.rest.delete(import_v106.Routes.invite(code), { reason, signal });
2136
+ async delete(code, { auth, reason, signal } = {}) {
2137
+ await this.rest.delete(import_v106.Routes.invite(code), { auth, reason, signal });
2019
2138
  }
2020
2139
  };
2021
2140
 
@@ -2036,8 +2155,8 @@ var MonetizationAPI = class {
2036
2155
  * @param applicationId - The application id to fetch SKUs for
2037
2156
  * @param options - The options for fetching the SKUs.
2038
2157
  */
2039
- async getSKUs(applicationId, { signal } = {}) {
2040
- return this.rest.get(import_v107.Routes.skus(applicationId), { signal });
2158
+ async getSKUs(applicationId, { auth, signal } = {}) {
2159
+ return this.rest.get(import_v107.Routes.skus(applicationId), { auth, signal });
2041
2160
  }
2042
2161
  /**
2043
2162
  * Fetches subscriptions for an SKU.
@@ -2047,8 +2166,9 @@ var MonetizationAPI = class {
2047
2166
  * @param query - The query options for fetching subscriptions
2048
2167
  * @param options - The options for fetching subscriptions
2049
2168
  */
2050
- async getSKUSubscriptions(skuId, query = {}, { signal } = {}) {
2169
+ async getSKUSubscriptions(skuId, query = {}, { auth, signal } = {}) {
2051
2170
  return this.rest.get(import_v107.Routes.skuSubscriptions(skuId), {
2171
+ auth,
2052
2172
  signal,
2053
2173
  query: (0, import_rest6.makeURLSearchParams)(query)
2054
2174
  });
@@ -2061,8 +2181,9 @@ var MonetizationAPI = class {
2061
2181
  * @param subscriptionId - The subscription id to fetch
2062
2182
  * @param options - The options for fetching the subscription
2063
2183
  */
2064
- async getSKUSubscription(skuId, subscriptionId, { signal } = {}) {
2184
+ async getSKUSubscription(skuId, subscriptionId, { auth, signal } = {}) {
2065
2185
  return this.rest.get(import_v107.Routes.skuSubscription(skuId, subscriptionId), {
2186
+ auth,
2066
2187
  signal
2067
2188
  });
2068
2189
  }
@@ -2074,8 +2195,9 @@ var MonetizationAPI = class {
2074
2195
  * @param query - The query options for fetching entitlements
2075
2196
  * @param options - The options for fetching entitlements
2076
2197
  */
2077
- async getEntitlements(applicationId, query = {}, { signal } = {}) {
2198
+ async getEntitlements(applicationId, query = {}, { auth, signal } = {}) {
2078
2199
  return this.rest.get(import_v107.Routes.entitlements(applicationId), {
2200
+ auth,
2079
2201
  signal,
2080
2202
  query: (0, import_rest6.makeURLSearchParams)(query)
2081
2203
  });
@@ -2088,8 +2210,9 @@ var MonetizationAPI = class {
2088
2210
  * @param entitlementId - The entitlement id to fetch
2089
2211
  * @param options - The options for fetching the entitlement
2090
2212
  */
2091
- async getEntitlement(applicationId, entitlementId, { signal } = {}) {
2213
+ async getEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2092
2214
  return this.rest.get(import_v107.Routes.entitlement(applicationId, entitlementId), {
2215
+ auth,
2093
2216
  signal
2094
2217
  });
2095
2218
  }
@@ -2101,8 +2224,9 @@ var MonetizationAPI = class {
2101
2224
  * @param body - The data for creating the entitlement
2102
2225
  * @param options - The options for creating the entitlement
2103
2226
  */
2104
- async createTestEntitlement(applicationId, body, { signal } = {}) {
2227
+ async createTestEntitlement(applicationId, body, { auth, signal } = {}) {
2105
2228
  return this.rest.post(import_v107.Routes.entitlements(applicationId), {
2229
+ auth,
2106
2230
  body,
2107
2231
  signal
2108
2232
  });
@@ -2115,8 +2239,8 @@ var MonetizationAPI = class {
2115
2239
  * @param entitlementId - The entitlement id to delete
2116
2240
  * @param options - The options for deleting the entitlement
2117
2241
  */
2118
- async deleteTestEntitlement(applicationId, entitlementId, { signal } = {}) {
2119
- await this.rest.delete(import_v107.Routes.entitlement(applicationId, entitlementId), { signal });
2242
+ async deleteTestEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2243
+ await this.rest.delete(import_v107.Routes.entitlement(applicationId, entitlementId), { auth, signal });
2120
2244
  }
2121
2245
  /**
2122
2246
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
@@ -2126,8 +2250,8 @@ var MonetizationAPI = class {
2126
2250
  * @param entitlementId - The entitlement id to consume
2127
2251
  * @param options - The options for consuming the entitlement
2128
2252
  */
2129
- async consumeEntitlement(applicationId, entitlementId, { signal } = {}) {
2130
- await this.rest.post(import_v107.Routes.consumeEntitlement(applicationId, entitlementId), { signal });
2253
+ async consumeEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2254
+ await this.rest.post(import_v107.Routes.consumeEntitlement(applicationId, entitlementId), { auth, signal });
2131
2255
  }
2132
2256
  };
2133
2257
 
@@ -2214,8 +2338,9 @@ var OAuth2API = class {
2214
2338
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
2215
2339
  * @param options - The options for the current bot application information request
2216
2340
  */
2217
- async getCurrentBotApplicationInformation({ signal } = {}) {
2341
+ async getCurrentBotApplicationInformation({ auth, signal } = {}) {
2218
2342
  return this.rest.get(import_v108.Routes.oauth2CurrentApplication(), {
2343
+ auth,
2219
2344
  signal
2220
2345
  });
2221
2346
  }
@@ -2225,8 +2350,9 @@ var OAuth2API = class {
2225
2350
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
2226
2351
  * @param options - The options for the current authorization information request
2227
2352
  */
2228
- async getCurrentAuthorizationInformation({ signal } = {}) {
2353
+ async getCurrentAuthorizationInformation({ auth, signal } = {}) {
2229
2354
  return this.rest.get(import_v108.Routes.oauth2CurrentAuthorization(), {
2355
+ auth,
2230
2356
  signal
2231
2357
  });
2232
2358
  }
@@ -2273,8 +2399,9 @@ var PollAPI = class {
2273
2399
  * @param query - The query for getting the list of voters
2274
2400
  * @param options - The options for getting the list of voters
2275
2401
  */
2276
- async getAnswerVoters(channelId, messageId, answerId, query = {}, { signal } = {}) {
2402
+ async getAnswerVoters(channelId, messageId, answerId, query = {}, { auth, signal } = {}) {
2277
2403
  return this.rest.get(import_v109.Routes.pollAnswerVoters(channelId, messageId, answerId), {
2404
+ auth,
2278
2405
  signal,
2279
2406
  query: (0, import_rest8.makeURLSearchParams)(query)
2280
2407
  });
@@ -2287,8 +2414,9 @@ var PollAPI = class {
2287
2414
  * @param messageId - The id of the message containing the poll
2288
2415
  * @param options - The options for expiring the poll
2289
2416
  */
2290
- async expirePoll(channelId, messageId, { signal } = {}) {
2417
+ async expirePoll(channelId, messageId, { auth, signal } = {}) {
2291
2418
  return this.rest.post(import_v109.Routes.expirePoll(channelId, messageId), {
2419
+ auth,
2292
2420
  signal
2293
2421
  });
2294
2422
  }
@@ -2310,8 +2438,9 @@ var RoleConnectionsAPI = class {
2310
2438
  * @param applicationId - The id of the application to get role connection metadata records for
2311
2439
  * @param options - The options for fetching the role connection metadata records
2312
2440
  */
2313
- async getMetadataRecords(applicationId, { signal } = {}) {
2441
+ async getMetadataRecords(applicationId, { auth, signal } = {}) {
2314
2442
  return this.rest.get(import_v1010.Routes.applicationRoleConnectionMetadata(applicationId), {
2443
+ auth,
2315
2444
  signal
2316
2445
  });
2317
2446
  }
@@ -2323,8 +2452,9 @@ var RoleConnectionsAPI = class {
2323
2452
  * @param body - The new role connection metadata records
2324
2453
  * @param options - The options for updating the role connection metadata records
2325
2454
  */
2326
- async updateMetadataRecords(applicationId, body, { signal } = {}) {
2455
+ async updateMetadataRecords(applicationId, body, { auth, signal } = {}) {
2327
2456
  return this.rest.put(import_v1010.Routes.applicationRoleConnectionMetadata(applicationId), {
2457
+ auth,
2328
2458
  body,
2329
2459
  signal
2330
2460
  });
@@ -2346,8 +2476,9 @@ var SoundboardSoundsAPI = class {
2346
2476
  * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
2347
2477
  * @param options - The options for fetching the soundboard default sounds.
2348
2478
  */
2349
- async getSoundboardDefaultSounds({ signal } = {}) {
2479
+ async getSoundboardDefaultSounds({ auth, signal } = {}) {
2350
2480
  return this.rest.get(import_v1011.Routes.soundboardDefaultSounds(), {
2481
+ auth,
2351
2482
  signal
2352
2483
  });
2353
2484
  }
@@ -2369,8 +2500,9 @@ var StageInstancesAPI = class {
2369
2500
  * @param body - The data for creating the new stage instance
2370
2501
  * @param options - The options for creating the new stage instance
2371
2502
  */
2372
- async create(body, { reason, signal } = {}) {
2503
+ async create(body, { auth, reason, signal } = {}) {
2373
2504
  return this.rest.post(import_v1012.Routes.stageInstances(), {
2505
+ auth,
2374
2506
  body,
2375
2507
  reason,
2376
2508
  signal
@@ -2383,8 +2515,8 @@ var StageInstancesAPI = class {
2383
2515
  * @param channelId - The id of the channel
2384
2516
  * @param options - The options for fetching the stage instance
2385
2517
  */
2386
- async get(channelId, { signal } = {}) {
2387
- return this.rest.get(import_v1012.Routes.stageInstance(channelId), { signal });
2518
+ async get(channelId, { auth, signal } = {}) {
2519
+ return this.rest.get(import_v1012.Routes.stageInstance(channelId), { auth, signal });
2388
2520
  }
2389
2521
  /**
2390
2522
  * Edits a stage instance
@@ -2394,8 +2526,9 @@ var StageInstancesAPI = class {
2394
2526
  * @param body - The new stage instance data
2395
2527
  * @param options - The options for editing the stage instance
2396
2528
  */
2397
- async edit(channelId, body, { reason, signal } = {}) {
2529
+ async edit(channelId, body, { auth, reason, signal } = {}) {
2398
2530
  return this.rest.patch(import_v1012.Routes.stageInstance(channelId), {
2531
+ auth,
2399
2532
  body,
2400
2533
  reason,
2401
2534
  signal
@@ -2408,8 +2541,8 @@ var StageInstancesAPI = class {
2408
2541
  * @param channelId - The id of the channel
2409
2542
  * @param options - The options for deleting the stage instance
2410
2543
  */
2411
- async delete(channelId, { reason, signal } = {}) {
2412
- await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { reason, signal });
2544
+ async delete(channelId, { auth, reason, signal } = {}) {
2545
+ await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { auth, reason, signal });
2413
2546
  }
2414
2547
  };
2415
2548
 
@@ -2429,8 +2562,8 @@ var StickersAPI = class {
2429
2562
  * @param packId - The id of the sticker pack
2430
2563
  * @param options - The options for fetching the sticker pack
2431
2564
  */
2432
- async getStickerPack(packId, { signal } = {}) {
2433
- return this.rest.get(import_v1013.Routes.stickerPack(packId), { signal });
2565
+ async getStickerPack(packId, { auth, signal } = {}) {
2566
+ return this.rest.get(import_v1013.Routes.stickerPack(packId), { auth, signal });
2434
2567
  }
2435
2568
  /**
2436
2569
  * Fetches all of the sticker packs
@@ -2438,8 +2571,8 @@ var StickersAPI = class {
2438
2571
  * @see {@link https://discord.com/developers/docs/resources/sticker#list-sticker-packs}
2439
2572
  * @param options - The options for fetching the sticker packs
2440
2573
  */
2441
- async getStickers({ signal } = {}) {
2442
- return this.rest.get(import_v1013.Routes.stickerPacks(), { signal });
2574
+ async getStickers({ auth, signal } = {}) {
2575
+ return this.rest.get(import_v1013.Routes.stickerPacks(), { auth, signal });
2443
2576
  }
2444
2577
  /**
2445
2578
  * Fetches a sticker
@@ -2448,8 +2581,8 @@ var StickersAPI = class {
2448
2581
  * @param stickerId - The id of the sticker
2449
2582
  * @param options - The options for fetching the sticker
2450
2583
  */
2451
- async get(stickerId, { signal } = {}) {
2452
- return this.rest.get(import_v1013.Routes.sticker(stickerId), { signal });
2584
+ async get(stickerId, { auth, signal } = {}) {
2585
+ return this.rest.get(import_v1013.Routes.sticker(stickerId), { auth, signal });
2453
2586
  }
2454
2587
  };
2455
2588
 
@@ -2469,8 +2602,8 @@ var ThreadsAPI = class {
2469
2602
  * @param threadId - The id of the thread to join
2470
2603
  * @param options - The options for joining the thread
2471
2604
  */
2472
- async join(threadId, { signal } = {}) {
2473
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2605
+ async join(threadId, { auth, signal } = {}) {
2606
+ await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { auth, signal });
2474
2607
  }
2475
2608
  /**
2476
2609
  * Adds a member to a thread
@@ -2480,8 +2613,8 @@ var ThreadsAPI = class {
2480
2613
  * @param userId - The id of the user to add to the thread
2481
2614
  * @param options - The options for adding the member to the thread
2482
2615
  */
2483
- async addMember(threadId, userId, { signal } = {}) {
2484
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2616
+ async addMember(threadId, userId, { auth, signal } = {}) {
2617
+ await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2485
2618
  }
2486
2619
  /**
2487
2620
  * Removes the current user from a thread
@@ -2490,8 +2623,8 @@ var ThreadsAPI = class {
2490
2623
  * @param threadId - The id of the thread to leave
2491
2624
  * @param options - The options for leaving the thread
2492
2625
  */
2493
- async leave(threadId, { signal } = {}) {
2494
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2626
+ async leave(threadId, { auth, signal } = {}) {
2627
+ await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { auth, signal });
2495
2628
  }
2496
2629
  /**
2497
2630
  * Removes a member from a thread
@@ -2501,8 +2634,8 @@ var ThreadsAPI = class {
2501
2634
  * @param userId - The id of the user to remove from the thread
2502
2635
  * @param options - The options for removing the member from the thread
2503
2636
  */
2504
- async removeMember(threadId, userId, { signal } = {}) {
2505
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2637
+ async removeMember(threadId, userId, { auth, signal } = {}) {
2638
+ await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2506
2639
  }
2507
2640
  /**
2508
2641
  * Fetches a member of a thread
@@ -2512,8 +2645,8 @@ var ThreadsAPI = class {
2512
2645
  * @param userId - The id of the user
2513
2646
  * @param options - The options for fetching the member
2514
2647
  */
2515
- async getMember(threadId, userId, { signal } = {}) {
2516
- return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2648
+ async getMember(threadId, userId, { auth, signal } = {}) {
2649
+ return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2517
2650
  }
2518
2651
  /**
2519
2652
  * Fetches all members of a thread
@@ -2522,8 +2655,11 @@ var ThreadsAPI = class {
2522
2655
  * @param threadId - The id of the thread to fetch the members from
2523
2656
  * @param options - The options for fetching the members
2524
2657
  */
2525
- async getAllMembers(threadId, { signal } = {}) {
2526
- return this.rest.get(import_v1014.Routes.threadMembers(threadId), { signal });
2658
+ async getAllMembers(threadId, { auth, signal } = {}) {
2659
+ return this.rest.get(import_v1014.Routes.threadMembers(threadId), {
2660
+ auth,
2661
+ signal
2662
+ });
2527
2663
  }
2528
2664
  };
2529
2665
 
@@ -2544,8 +2680,8 @@ var UsersAPI = class {
2544
2680
  * @param userId - The id of the user to fetch
2545
2681
  * @param options - The options for fetching the user
2546
2682
  */
2547
- async get(userId, { signal } = {}) {
2548
- return this.rest.get(import_v1015.Routes.user(userId), { signal });
2683
+ async get(userId, { auth, signal } = {}) {
2684
+ return this.rest.get(import_v1015.Routes.user(userId), { auth, signal });
2549
2685
  }
2550
2686
  /**
2551
2687
  * Returns the user object of the requester's account
@@ -2553,8 +2689,8 @@ var UsersAPI = class {
2553
2689
  * @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
2554
2690
  * @param options - The options for fetching the current user
2555
2691
  */
2556
- async getCurrent({ signal } = {}) {
2557
- return this.rest.get(import_v1015.Routes.user("@me"), { signal });
2692
+ async getCurrent({ auth, signal } = {}) {
2693
+ return this.rest.get(import_v1015.Routes.user("@me"), { auth, signal });
2558
2694
  }
2559
2695
  /**
2560
2696
  * Returns a list of partial guild objects the current user is a member of
@@ -2563,8 +2699,9 @@ var UsersAPI = class {
2563
2699
  * @param query - The query options for fetching the current user's guilds
2564
2700
  * @param options - The options for fetching the guilds
2565
2701
  */
2566
- async getGuilds(query = {}, { signal } = {}) {
2702
+ async getGuilds(query = {}, { auth, signal } = {}) {
2567
2703
  return this.rest.get(import_v1015.Routes.userGuilds(), {
2704
+ auth,
2568
2705
  query: (0, import_rest9.makeURLSearchParams)(query),
2569
2706
  signal
2570
2707
  });
@@ -2576,8 +2713,8 @@ var UsersAPI = class {
2576
2713
  * @param guildId - The id of the guild
2577
2714
  * @param options - The options for leaving the guild
2578
2715
  */
2579
- async leaveGuild(guildId, { signal } = {}) {
2580
- await this.rest.delete(import_v1015.Routes.userGuild(guildId), { signal });
2716
+ async leaveGuild(guildId, { auth, signal } = {}) {
2717
+ await this.rest.delete(import_v1015.Routes.userGuild(guildId), { auth, signal });
2581
2718
  }
2582
2719
  /**
2583
2720
  * Edits the current user
@@ -2586,8 +2723,8 @@ var UsersAPI = class {
2586
2723
  * @param body - The new data for the current user
2587
2724
  * @param options - The options for editing the user
2588
2725
  */
2589
- async edit(body, { signal } = {}) {
2590
- return this.rest.patch(import_v1015.Routes.user("@me"), { body, signal });
2726
+ async edit(body, { auth, signal } = {}) {
2727
+ return this.rest.patch(import_v1015.Routes.user("@me"), { auth, body, signal });
2591
2728
  }
2592
2729
  /**
2593
2730
  * Fetches the guild member for the current user
@@ -2596,8 +2733,11 @@ var UsersAPI = class {
2596
2733
  * @param guildId - The id of the guild
2597
2734
  * @param options - The options for fetching the guild member
2598
2735
  */
2599
- async getGuildMember(guildId, { signal } = {}) {
2600
- return this.rest.get(import_v1015.Routes.userGuildMember(guildId), { signal });
2736
+ async getGuildMember(guildId, { auth, signal } = {}) {
2737
+ return this.rest.get(import_v1015.Routes.userGuildMember(guildId), {
2738
+ auth,
2739
+ signal
2740
+ });
2601
2741
  }
2602
2742
  /**
2603
2743
  * Edits the guild member for the current user
@@ -2607,8 +2747,9 @@ var UsersAPI = class {
2607
2747
  * @param body - The new data for the guild member
2608
2748
  * @param options - The options for editing the guild member
2609
2749
  */
2610
- async editCurrentGuildMember(guildId, body = {}, { reason, signal } = {}) {
2750
+ async editCurrentGuildMember(guildId, body = {}, { auth, reason, signal } = {}) {
2611
2751
  return this.rest.patch(import_v1015.Routes.guildMember(guildId, "@me"), {
2752
+ auth,
2612
2753
  reason,
2613
2754
  body,
2614
2755
  signal
@@ -2621,8 +2762,9 @@ var UsersAPI = class {
2621
2762
  * @param userId - The id of the user to open a DM channel with
2622
2763
  * @param options - The options for opening the DM
2623
2764
  */
2624
- async createDM(userId, { signal } = {}) {
2765
+ async createDM(userId, { auth, signal } = {}) {
2625
2766
  return this.rest.post(import_v1015.Routes.userChannels(), {
2767
+ auth,
2626
2768
  body: { recipient_id: userId },
2627
2769
  signal
2628
2770
  });
@@ -2633,8 +2775,8 @@ var UsersAPI = class {
2633
2775
  * @see {@link https://discord.com/developers/docs/resources/user#get-user-connections}
2634
2776
  * @param options - The options for fetching the user's connections
2635
2777
  */
2636
- async getConnections({ signal } = {}) {
2637
- return this.rest.get(import_v1015.Routes.userConnections(), { signal });
2778
+ async getConnections({ auth, signal } = {}) {
2779
+ return this.rest.get(import_v1015.Routes.userConnections(), { auth, signal });
2638
2780
  }
2639
2781
  /**
2640
2782
  * Gets the current user's active application role connection
@@ -2643,8 +2785,9 @@ var UsersAPI = class {
2643
2785
  * @param applicationId - The id of the application
2644
2786
  * @param options - The options for fetching the role connections
2645
2787
  */
2646
- async getApplicationRoleConnection(applicationId, { signal } = {}) {
2788
+ async getApplicationRoleConnection(applicationId, { auth, signal } = {}) {
2647
2789
  return this.rest.get(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2790
+ auth,
2648
2791
  signal
2649
2792
  });
2650
2793
  }
@@ -2656,8 +2799,9 @@ var UsersAPI = class {
2656
2799
  * @param body - The data for updating the application role connection
2657
2800
  * @param options - The options for updating the application role connection
2658
2801
  */
2659
- async updateApplicationRoleConnection(applicationId, body, { signal } = {}) {
2802
+ async updateApplicationRoleConnection(applicationId, body, { auth, signal } = {}) {
2660
2803
  return this.rest.put(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2804
+ auth,
2661
2805
  body,
2662
2806
  signal
2663
2807
  });
@@ -2679,8 +2823,8 @@ var VoiceAPI = class {
2679
2823
  * @see {@link https://discord.com/developers/docs/resources/voice#list-voice-regions}
2680
2824
  * @param options - The options for fetching the voice regions
2681
2825
  */
2682
- async getVoiceRegions({ signal } = {}) {
2683
- return this.rest.get(import_v1016.Routes.voiceRegions(), { signal });
2826
+ async getVoiceRegions({ auth, signal } = {}) {
2827
+ return this.rest.get(import_v1016.Routes.voiceRegions(), { auth, signal });
2684
2828
  }
2685
2829
  /**
2686
2830
  * Fetches voice state of a user by their id
@@ -2688,8 +2832,9 @@ var VoiceAPI = class {
2688
2832
  * @see {@link https://discord.com/developers/docs/resources/voice#get-user-voice-state}
2689
2833
  * @param options - The options for fetching user voice state
2690
2834
  */
2691
- async getUserVoiceState(guildId, userId, { signal } = {}) {
2835
+ async getUserVoiceState(guildId, userId, { auth, signal } = {}) {
2692
2836
  return this.rest.get(import_v1016.Routes.guildVoiceState(guildId, userId), {
2837
+ auth,
2693
2838
  signal
2694
2839
  });
2695
2840
  }
@@ -2699,8 +2844,9 @@ var VoiceAPI = class {
2699
2844
  * @see {@link https://discord.com/developers/docs/resources/voice#get-current-user-voice-state}
2700
2845
  * @param options - The options for fetching user voice state
2701
2846
  */
2702
- async getVoiceState(guildId, { signal } = {}) {
2847
+ async getVoiceState(guildId, { auth, signal } = {}) {
2703
2848
  return this.rest.get(import_v1016.Routes.guildVoiceState(guildId, "@me"), {
2849
+ auth,
2704
2850
  signal
2705
2851
  });
2706
2852
  }
@@ -2713,8 +2859,9 @@ var VoiceAPI = class {
2713
2859
  * @param body - The data for editing the voice state
2714
2860
  * @param options - The options for editing the voice state
2715
2861
  */
2716
- async editUserVoiceState(guildId, userId, body, { reason, signal } = {}) {
2862
+ async editUserVoiceState(guildId, userId, body, { auth, reason, signal } = {}) {
2717
2863
  return this.rest.patch(import_v1016.Routes.guildVoiceState(guildId, userId), {
2864
+ auth,
2718
2865
  reason,
2719
2866
  body,
2720
2867
  signal
@@ -2728,8 +2875,9 @@ var VoiceAPI = class {
2728
2875
  * @param body - The data for editing the voice state
2729
2876
  * @param options - The options for editing the voice state
2730
2877
  */
2731
- async editVoiceState(guildId, body = {}, { signal } = {}) {
2878
+ async editVoiceState(guildId, body = {}, { auth, signal } = {}) {
2732
2879
  return this.rest.patch(import_v1016.Routes.guildVoiceState(guildId, "@me"), {
2880
+ auth,
2733
2881
  body,
2734
2882
  signal
2735
2883
  });
@@ -3111,7 +3259,7 @@ __name(withFiles, "withFiles");
3111
3259
 
3112
3260
  // src/index.ts
3113
3261
  __reExport(index_exports, require("discord-api-types/v10"), module.exports);
3114
- var version = "3.0.0-dev.1737633902-687e2ae67";
3262
+ var version = "3.0.0-dev.1737720294-670667d65";
3115
3263
  // Annotate the CommonJS export names for ESM import in node:
3116
3264
  0 && (module.exports = {
3117
3265
  API,