@discordjs/core 3.0.0-dev.1737633902-687e2ae67 → 3.0.0-dev.1737763887-2cbf41800

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