@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/index.mjs CHANGED
@@ -21,8 +21,9 @@ var ApplicationCommandsAPI = class {
21
21
  * @param query - The query options for fetching commands
22
22
  * @param options - The options for fetching commands
23
23
  */
24
- async getGlobalCommands(applicationId, query = {}, { signal } = {}) {
24
+ async getGlobalCommands(applicationId, query = {}, { auth, signal } = {}) {
25
25
  return this.rest.get(Routes.applicationCommands(applicationId), {
26
+ auth,
26
27
  query: makeURLSearchParams(query),
27
28
  signal
28
29
  });
@@ -35,8 +36,9 @@ var ApplicationCommandsAPI = class {
35
36
  * @param body - The data for creating the command
36
37
  * @param options - The options for creating the command
37
38
  */
38
- async createGlobalCommand(applicationId, body, { signal } = {}) {
39
+ async createGlobalCommand(applicationId, body, { auth, signal } = {}) {
39
40
  return this.rest.post(Routes.applicationCommands(applicationId), {
41
+ auth,
40
42
  body,
41
43
  signal
42
44
  });
@@ -49,8 +51,9 @@ var ApplicationCommandsAPI = class {
49
51
  * @param commandId - The command id to fetch
50
52
  * @param options - The options for fetching the command
51
53
  */
52
- async getGlobalCommand(applicationId, commandId, { signal } = {}) {
54
+ async getGlobalCommand(applicationId, commandId, { auth, signal } = {}) {
53
55
  return this.rest.get(Routes.applicationCommand(applicationId, commandId), {
56
+ auth,
54
57
  signal
55
58
  });
56
59
  }
@@ -63,8 +66,9 @@ var ApplicationCommandsAPI = class {
63
66
  * @param body - The data for editing the command
64
67
  * @param options - The options for editing the command
65
68
  */
66
- async editGlobalCommand(applicationId, commandId, body, { signal } = {}) {
69
+ async editGlobalCommand(applicationId, commandId, body, { auth, signal } = {}) {
67
70
  return this.rest.patch(Routes.applicationCommand(applicationId, commandId), {
71
+ auth,
68
72
  body,
69
73
  signal
70
74
  });
@@ -77,8 +81,8 @@ var ApplicationCommandsAPI = class {
77
81
  * @param commandId - The id of the command to delete
78
82
  * @param options - The options for deleting a command
79
83
  */
80
- async deleteGlobalCommand(applicationId, commandId, { signal } = {}) {
81
- await this.rest.delete(Routes.applicationCommand(applicationId, commandId), { signal });
84
+ async deleteGlobalCommand(applicationId, commandId, { auth, signal } = {}) {
85
+ await this.rest.delete(Routes.applicationCommand(applicationId, commandId), { auth, signal });
82
86
  }
83
87
  /**
84
88
  * Overwrites global commands
@@ -88,8 +92,9 @@ var ApplicationCommandsAPI = class {
88
92
  * @param body - The data for overwriting commands
89
93
  * @param options - The options for overwriting commands
90
94
  */
91
- async bulkOverwriteGlobalCommands(applicationId, body, { signal } = {}) {
95
+ async bulkOverwriteGlobalCommands(applicationId, body, { auth, signal } = {}) {
92
96
  return this.rest.put(Routes.applicationCommands(applicationId), {
97
+ auth,
93
98
  body,
94
99
  signal
95
100
  });
@@ -103,8 +108,9 @@ var ApplicationCommandsAPI = class {
103
108
  * @param query - The data for fetching commands
104
109
  * @param options - The options for fetching commands
105
110
  */
106
- async getGuildCommands(applicationId, guildId, query = {}, { signal } = {}) {
111
+ async getGuildCommands(applicationId, guildId, query = {}, { auth, signal } = {}) {
107
112
  return this.rest.get(Routes.applicationGuildCommands(applicationId, guildId), {
113
+ auth,
108
114
  query: makeURLSearchParams(query),
109
115
  signal
110
116
  });
@@ -118,8 +124,9 @@ var ApplicationCommandsAPI = class {
118
124
  * @param body - The data for creating the command
119
125
  * @param options - The options for creating the command
120
126
  */
121
- async createGuildCommand(applicationId, guildId, body, { signal } = {}) {
127
+ async createGuildCommand(applicationId, guildId, body, { auth, signal } = {}) {
122
128
  return this.rest.post(Routes.applicationGuildCommands(applicationId, guildId), {
129
+ auth,
123
130
  body,
124
131
  signal
125
132
  });
@@ -133,8 +140,9 @@ var ApplicationCommandsAPI = class {
133
140
  * @param commandId - The command id to fetch
134
141
  * @param options - The options for fetching the command
135
142
  */
136
- async getGuildCommand(applicationId, guildId, commandId, { signal } = {}) {
143
+ async getGuildCommand(applicationId, guildId, commandId, { auth, signal } = {}) {
137
144
  return this.rest.get(Routes.applicationGuildCommand(applicationId, guildId, commandId), {
145
+ auth,
138
146
  signal
139
147
  });
140
148
  }
@@ -148,8 +156,9 @@ var ApplicationCommandsAPI = class {
148
156
  * @param body - The data for editing the command
149
157
  * @param options - The options for editing the command
150
158
  */
151
- async editGuildCommand(applicationId, guildId, commandId, body, { signal } = {}) {
159
+ async editGuildCommand(applicationId, guildId, commandId, body, { auth, signal } = {}) {
152
160
  return this.rest.patch(Routes.applicationGuildCommand(applicationId, guildId, commandId), {
161
+ auth,
153
162
  body,
154
163
  signal
155
164
  });
@@ -163,8 +172,8 @@ var ApplicationCommandsAPI = class {
163
172
  * @param commandId - The id of the command to delete
164
173
  * @param options - The options for deleting the command
165
174
  */
166
- async deleteGuildCommand(applicationId, guildId, commandId, { signal } = {}) {
167
- await this.rest.delete(Routes.applicationGuildCommand(applicationId, guildId, commandId), { signal });
175
+ async deleteGuildCommand(applicationId, guildId, commandId, { auth, signal } = {}) {
176
+ await this.rest.delete(Routes.applicationGuildCommand(applicationId, guildId, commandId), { auth, signal });
168
177
  }
169
178
  /**
170
179
  * Bulk overwrites guild commands
@@ -175,8 +184,9 @@ var ApplicationCommandsAPI = class {
175
184
  * @param body - The data for overwriting commands
176
185
  * @param options - The options for overwriting the commands
177
186
  */
178
- async bulkOverwriteGuildCommands(applicationId, guildId, body, { signal } = {}) {
187
+ async bulkOverwriteGuildCommands(applicationId, guildId, body, { auth, signal } = {}) {
179
188
  return this.rest.put(Routes.applicationGuildCommands(applicationId, guildId), {
189
+ auth,
180
190
  body,
181
191
  signal
182
192
  });
@@ -190,8 +200,9 @@ var ApplicationCommandsAPI = class {
190
200
  * @param commandId - The command id to get the permissions for
191
201
  * @param options - The option for fetching the command
192
202
  */
193
- async getGuildCommandPermissions(applicationId, guildId, commandId, { signal } = {}) {
203
+ async getGuildCommandPermissions(applicationId, guildId, commandId, { auth, signal } = {}) {
194
204
  return this.rest.get(Routes.applicationCommandPermissions(applicationId, guildId, commandId), {
205
+ auth,
195
206
  signal
196
207
  });
197
208
  }
@@ -203,8 +214,9 @@ var ApplicationCommandsAPI = class {
203
214
  * @param guildId - The guild id to get the permissions for
204
215
  * @param options - The options for fetching permissions
205
216
  */
206
- async getGuildCommandsPermissions(applicationId, guildId, { signal } = {}) {
217
+ async getGuildCommandsPermissions(applicationId, guildId, { auth, signal } = {}) {
207
218
  return this.rest.get(Routes.guildApplicationCommandsPermissions(applicationId, guildId), {
219
+ auth,
208
220
  signal
209
221
  });
210
222
  }
@@ -246,8 +258,8 @@ var ApplicationsAPI = class {
246
258
  * @see {@link https://discord.com/developers/docs/resources/application#get-current-application}
247
259
  * @param options - The options for fetching the application
248
260
  */
249
- async getCurrent({ signal } = {}) {
250
- return this.rest.get(Routes2.currentApplication(), { signal });
261
+ async getCurrent({ auth, signal } = {}) {
262
+ return this.rest.get(Routes2.currentApplication(), { auth, signal });
251
263
  }
252
264
  /**
253
265
  * Edits properties of the application associated with the requesting bot user.
@@ -256,8 +268,9 @@ var ApplicationsAPI = class {
256
268
  * @param body - The new application data
257
269
  * @param options - The options for editing the application
258
270
  */
259
- async editCurrent(body, { signal } = {}) {
271
+ async editCurrent(body, { auth, signal } = {}) {
260
272
  return this.rest.patch(Routes2.currentApplication(), {
273
+ auth,
261
274
  body,
262
275
  signal
263
276
  });
@@ -269,8 +282,9 @@ var ApplicationsAPI = class {
269
282
  * @param applicationId - The id of the application to fetch the emojis of
270
283
  * @param options - The options for fetching the emojis
271
284
  */
272
- async getEmojis(applicationId, { signal } = {}) {
285
+ async getEmojis(applicationId, { auth, signal } = {}) {
273
286
  return this.rest.get(Routes2.applicationEmojis(applicationId), {
287
+ auth,
274
288
  signal
275
289
  });
276
290
  }
@@ -282,8 +296,9 @@ var ApplicationsAPI = class {
282
296
  * @param emojiId - The id of the emoji to fetch
283
297
  * @param options - The options for fetching the emoji
284
298
  */
285
- async getEmoji(applicationId, emojiId, { signal } = {}) {
299
+ async getEmoji(applicationId, emojiId, { auth, signal } = {}) {
286
300
  return this.rest.get(Routes2.applicationEmoji(applicationId, emojiId), {
301
+ auth,
287
302
  signal
288
303
  });
289
304
  }
@@ -295,8 +310,9 @@ var ApplicationsAPI = class {
295
310
  * @param body - The data for creating the emoji
296
311
  * @param options - The options for creating the emoji
297
312
  */
298
- async createEmoji(applicationId, body, { signal } = {}) {
313
+ async createEmoji(applicationId, body, { auth, signal } = {}) {
299
314
  return this.rest.post(Routes2.applicationEmojis(applicationId), {
315
+ auth,
300
316
  body,
301
317
  signal
302
318
  });
@@ -310,8 +326,9 @@ var ApplicationsAPI = class {
310
326
  * @param body - The data for editing the emoji
311
327
  * @param options - The options for editing the emoji
312
328
  */
313
- async editEmoji(applicationId, emojiId, body, { signal } = {}) {
329
+ async editEmoji(applicationId, emojiId, body, { auth, signal } = {}) {
314
330
  return this.rest.patch(Routes2.applicationEmoji(applicationId, emojiId), {
331
+ auth,
315
332
  body,
316
333
  signal
317
334
  });
@@ -324,8 +341,8 @@ var ApplicationsAPI = class {
324
341
  * @param emojiId - The id of the emoji to delete
325
342
  * @param options - The options for deleting the emoji
326
343
  */
327
- async deleteEmoji(applicationId, emojiId, { signal } = {}) {
328
- await this.rest.delete(Routes2.applicationEmoji(applicationId, emojiId), { signal });
344
+ async deleteEmoji(applicationId, emojiId, { auth, signal } = {}) {
345
+ await this.rest.delete(Routes2.applicationEmoji(applicationId, emojiId), { auth, signal });
329
346
  }
330
347
  };
331
348
 
@@ -349,8 +366,9 @@ var ChannelsAPI = class {
349
366
  * @param body - The data for sending the message
350
367
  * @param options - The options for sending the message
351
368
  */
352
- async createMessage(channelId, { files, ...body }, { signal } = {}) {
369
+ async createMessage(channelId, { files, ...body }, { auth, signal } = {}) {
353
370
  return this.rest.post(Routes3.channelMessages(channelId), {
371
+ auth,
354
372
  files,
355
373
  body,
356
374
  signal
@@ -365,8 +383,9 @@ var ChannelsAPI = class {
365
383
  * @param body - The data for editing the message
366
384
  * @param options - The options for editing the message
367
385
  */
368
- async editMessage(channelId, messageId, { files, ...body }, { signal } = {}) {
386
+ async editMessage(channelId, messageId, { files, ...body }, { auth, signal } = {}) {
369
387
  return this.rest.patch(Routes3.channelMessage(channelId, messageId), {
388
+ auth,
370
389
  files,
371
390
  body,
372
391
  signal
@@ -390,8 +409,9 @@ var ChannelsAPI = class {
390
409
  * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
391
410
  * ```
392
411
  */
393
- async getMessageReactions(channelId, messageId, emoji, query = {}, { signal } = {}) {
412
+ async getMessageReactions(channelId, messageId, emoji, query = {}, { auth, signal } = {}) {
394
413
  return this.rest.get(Routes3.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), {
414
+ auth,
395
415
  query: makeURLSearchParams2(query),
396
416
  signal
397
417
  });
@@ -413,8 +433,9 @@ var ChannelsAPI = class {
413
433
  * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
414
434
  * ```
415
435
  */
416
- async deleteOwnMessageReaction(channelId, messageId, emoji, { signal } = {}) {
436
+ async deleteOwnMessageReaction(channelId, messageId, emoji, { auth, signal } = {}) {
417
437
  await this.rest.delete(Routes3.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), {
438
+ auth,
418
439
  signal
419
440
  });
420
441
  }
@@ -436,8 +457,9 @@ var ChannelsAPI = class {
436
457
  * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
437
458
  * ```
438
459
  */
439
- async deleteUserMessageReaction(channelId, messageId, emoji, userId, { signal } = {}) {
460
+ async deleteUserMessageReaction(channelId, messageId, emoji, userId, { auth, signal } = {}) {
440
461
  await this.rest.delete(Routes3.channelMessageUserReaction(channelId, messageId, encodeURIComponent(emoji), userId), {
462
+ auth,
441
463
  signal
442
464
  });
443
465
  }
@@ -449,8 +471,8 @@ var ChannelsAPI = class {
449
471
  * @param messageId - The id of the message to delete the reactions for
450
472
  * @param options - The options for deleting the reactions
451
473
  */
452
- async deleteAllMessageReactions(channelId, messageId, { signal } = {}) {
453
- await this.rest.delete(Routes3.channelMessageAllReactions(channelId, messageId), { signal });
474
+ async deleteAllMessageReactions(channelId, messageId, { auth, signal } = {}) {
475
+ await this.rest.delete(Routes3.channelMessageAllReactions(channelId, messageId), { auth, signal });
454
476
  }
455
477
  /**
456
478
  * Deletes all reactions of an emoji for a message
@@ -469,8 +491,11 @@ var ChannelsAPI = class {
469
491
  * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
470
492
  * ```
471
493
  */
472
- async deleteAllMessageReactionsForEmoji(channelId, messageId, emoji, { signal } = {}) {
473
- await this.rest.delete(Routes3.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
494
+ async deleteAllMessageReactionsForEmoji(channelId, messageId, emoji, { auth, signal } = {}) {
495
+ await this.rest.delete(Routes3.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), {
496
+ auth,
497
+ signal
498
+ });
474
499
  }
475
500
  /**
476
501
  * Adds a reaction to a message
@@ -489,8 +514,11 @@ var ChannelsAPI = class {
489
514
  * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
490
515
  * ```
491
516
  */
492
- async addMessageReaction(channelId, messageId, emoji, { signal } = {}) {
493
- await this.rest.put(Routes3.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
517
+ async addMessageReaction(channelId, messageId, emoji, { auth, signal } = {}) {
518
+ await this.rest.put(Routes3.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), {
519
+ auth,
520
+ signal
521
+ });
494
522
  }
495
523
  /**
496
524
  * Fetches a channel
@@ -499,8 +527,8 @@ var ChannelsAPI = class {
499
527
  * @param channelId - The id of the channel
500
528
  * @param options - The options for fetching the channel
501
529
  */
502
- async get(channelId, { signal } = {}) {
503
- return this.rest.get(Routes3.channel(channelId), { signal });
530
+ async get(channelId, { auth, signal } = {}) {
531
+ return this.rest.get(Routes3.channel(channelId), { auth, signal });
504
532
  }
505
533
  /**
506
534
  * Edits a channel
@@ -510,8 +538,8 @@ var ChannelsAPI = class {
510
538
  * @param body - The new channel data
511
539
  * @param options - The options for editing the channel
512
540
  */
513
- async edit(channelId, body, { signal } = {}) {
514
- return this.rest.patch(Routes3.channel(channelId), { body, signal });
541
+ async edit(channelId, body, { auth, signal } = {}) {
542
+ return this.rest.patch(Routes3.channel(channelId), { auth, body, signal });
515
543
  }
516
544
  /**
517
545
  * Deletes a channel
@@ -520,8 +548,8 @@ var ChannelsAPI = class {
520
548
  * @param channelId - The id of the channel to delete
521
549
  * @param options - The options for deleting the channel
522
550
  */
523
- async delete(channelId, { signal } = {}) {
524
- return this.rest.delete(Routes3.channel(channelId), { signal });
551
+ async delete(channelId, { auth, signal } = {}) {
552
+ return this.rest.delete(Routes3.channel(channelId), { auth, signal });
525
553
  }
526
554
  /**
527
555
  * Fetches the messages of a channel
@@ -531,8 +559,9 @@ var ChannelsAPI = class {
531
559
  * @param query - The query options for fetching messages
532
560
  * @param options - The options for fetching the messages
533
561
  */
534
- async getMessages(channelId, query = {}, { signal } = {}) {
562
+ async getMessages(channelId, query = {}, { auth, signal } = {}) {
535
563
  return this.rest.get(Routes3.channelMessages(channelId), {
564
+ auth,
536
565
  query: makeURLSearchParams2(query),
537
566
  signal
538
567
  });
@@ -544,8 +573,8 @@ var ChannelsAPI = class {
544
573
  * @param channelId - The id of the channel to show the typing indicator in
545
574
  * @param options - The options for showing the typing indicator
546
575
  */
547
- async showTyping(channelId, { signal } = {}) {
548
- await this.rest.post(Routes3.channelTyping(channelId), { signal });
576
+ async showTyping(channelId, { auth, signal } = {}) {
577
+ await this.rest.post(Routes3.channelTyping(channelId), { auth, signal });
549
578
  }
550
579
  /**
551
580
  * Fetches the pinned messages of a channel
@@ -554,8 +583,8 @@ var ChannelsAPI = class {
554
583
  * @param channelId - The id of the channel to fetch pinned messages from
555
584
  * @param options - The options for fetching the pinned messages
556
585
  */
557
- async getPins(channelId, { signal } = {}) {
558
- return this.rest.get(Routes3.channelPins(channelId), { signal });
586
+ async getPins(channelId, { auth, signal } = {}) {
587
+ return this.rest.get(Routes3.channelPins(channelId), { auth, signal });
559
588
  }
560
589
  /**
561
590
  * Pins a message in a channel
@@ -565,8 +594,8 @@ var ChannelsAPI = class {
565
594
  * @param messageId - The id of the message to pin
566
595
  * @param options - The options for pinning the message
567
596
  */
568
- async pinMessage(channelId, messageId, { reason, signal } = {}) {
569
- await this.rest.put(Routes3.channelPin(channelId, messageId), { reason, signal });
597
+ async pinMessage(channelId, messageId, { auth, reason, signal } = {}) {
598
+ await this.rest.put(Routes3.channelPin(channelId, messageId), { auth, reason, signal });
570
599
  }
571
600
  /**
572
601
  * Deletes a message
@@ -576,8 +605,8 @@ var ChannelsAPI = class {
576
605
  * @param messageId - The id of the message to delete
577
606
  * @param options - The options for deleting the message
578
607
  */
579
- async deleteMessage(channelId, messageId, { reason, signal } = {}) {
580
- await this.rest.delete(Routes3.channelMessage(channelId, messageId), { reason, signal });
608
+ async deleteMessage(channelId, messageId, { auth, reason, signal } = {}) {
609
+ await this.rest.delete(Routes3.channelMessage(channelId, messageId), { auth, reason, signal });
581
610
  }
582
611
  /**
583
612
  * Bulk deletes messages
@@ -587,8 +616,8 @@ var ChannelsAPI = class {
587
616
  * @param messageIds - The ids of the messages to delete
588
617
  * @param options - The options for deleting the messages
589
618
  */
590
- async bulkDeleteMessages(channelId, messageIds, { reason, signal } = {}) {
591
- await this.rest.post(Routes3.channelBulkDelete(channelId), { reason, body: { messages: messageIds }, signal });
619
+ async bulkDeleteMessages(channelId, messageIds, { auth, reason, signal } = {}) {
620
+ await this.rest.post(Routes3.channelBulkDelete(channelId), { auth, reason, body: { messages: messageIds }, signal });
592
621
  }
593
622
  /**
594
623
  * Fetches a message
@@ -598,8 +627,9 @@ var ChannelsAPI = class {
598
627
  * @param messageId - The id of the message to fetch
599
628
  * @param options - The options for fetching the message
600
629
  */
601
- async getMessage(channelId, messageId, { signal } = {}) {
630
+ async getMessage(channelId, messageId, { auth, signal } = {}) {
602
631
  return this.rest.get(Routes3.channelMessage(channelId, messageId), {
632
+ auth,
603
633
  signal
604
634
  });
605
635
  }
@@ -611,8 +641,9 @@ var ChannelsAPI = class {
611
641
  * @param messageId - The id of the message to crosspost
612
642
  * @param options - The options for crossposting the message
613
643
  */
614
- async crosspostMessage(channelId, messageId, { signal } = {}) {
644
+ async crosspostMessage(channelId, messageId, { auth, signal } = {}) {
615
645
  return this.rest.post(Routes3.channelMessageCrosspost(channelId, messageId), {
646
+ auth,
616
647
  signal
617
648
  });
618
649
  }
@@ -624,8 +655,8 @@ var ChannelsAPI = class {
624
655
  * @param messageId - The id of the message to unpin
625
656
  * @param options - The options for unpinning the message
626
657
  */
627
- async unpinMessage(channelId, messageId, { reason, signal } = {}) {
628
- await this.rest.delete(Routes3.channelPin(channelId, messageId), { reason, signal });
658
+ async unpinMessage(channelId, messageId, { auth, reason, signal } = {}) {
659
+ await this.rest.delete(Routes3.channelPin(channelId, messageId), { auth, reason, signal });
629
660
  }
630
661
  /**
631
662
  * Follows an announcement channel
@@ -635,8 +666,9 @@ var ChannelsAPI = class {
635
666
  * @param webhookChannelId - The id of the webhook channel to follow the announcements in
636
667
  * @param options - The options for following the announcement channel
637
668
  */
638
- async followAnnouncements(channelId, webhookChannelId, { reason, signal } = {}) {
669
+ async followAnnouncements(channelId, webhookChannelId, { auth, reason, signal } = {}) {
639
670
  return this.rest.post(Routes3.channelFollowers(channelId), {
671
+ auth,
640
672
  body: { webhook_channel_id: webhookChannelId },
641
673
  reason,
642
674
  signal
@@ -650,8 +682,9 @@ var ChannelsAPI = class {
650
682
  * @param body - The data for creating the invite
651
683
  * @param options - The options for creating the invite
652
684
  */
653
- async createInvite(channelId, body, { reason, signal } = {}) {
685
+ async createInvite(channelId, body, { auth, reason, signal } = {}) {
654
686
  return this.rest.post(Routes3.channelInvites(channelId), {
687
+ auth,
655
688
  reason,
656
689
  body,
657
690
  signal
@@ -664,8 +697,8 @@ var ChannelsAPI = class {
664
697
  * @param channelId - The id of the channel to fetch invites from
665
698
  * @param options - The options for fetching the invites
666
699
  */
667
- async getInvites(channelId, { signal } = {}) {
668
- return this.rest.get(Routes3.channelInvites(channelId), { signal });
700
+ async getInvites(channelId, { auth, signal } = {}) {
701
+ return this.rest.get(Routes3.channelInvites(channelId), { auth, signal });
669
702
  }
670
703
  /**
671
704
  * Creates a new thread
@@ -677,8 +710,9 @@ var ChannelsAPI = class {
677
710
  * @param messageId - The id of the message to start the thread from
678
711
  * @param options - The options for starting the thread
679
712
  */
680
- async createThread(channelId, body, messageId, { signal } = {}) {
713
+ async createThread(channelId, body, messageId, { auth, signal } = {}) {
681
714
  return this.rest.post(Routes3.threads(channelId, messageId), {
715
+ auth,
682
716
  body,
683
717
  signal
684
718
  });
@@ -691,13 +725,13 @@ var ChannelsAPI = class {
691
725
  * @param body - The data for starting the thread
692
726
  * @param options - The options for starting the thread
693
727
  */
694
- async createForumThread(channelId, { message, ...optionsBody }, { signal } = {}) {
728
+ async createForumThread(channelId, { message, ...optionsBody }, { auth, signal } = {}) {
695
729
  const { files, ...messageBody } = message;
696
730
  const body = {
697
731
  ...optionsBody,
698
732
  message: messageBody
699
733
  };
700
- return this.rest.post(Routes3.threads(channelId), { files, body, signal });
734
+ return this.rest.post(Routes3.threads(channelId), { auth, files, body, signal });
701
735
  }
702
736
  /**
703
737
  * Fetches the archived threads of a channel
@@ -709,8 +743,9 @@ var ChannelsAPI = class {
709
743
  * @param query - The options for fetching archived threads
710
744
  * @param options - The options for fetching archived threads
711
745
  */
712
- async getArchivedThreads(channelId, archivedStatus, query = {}, { signal } = {}) {
746
+ async getArchivedThreads(channelId, archivedStatus, query = {}, { auth, signal } = {}) {
713
747
  return this.rest.get(Routes3.channelThreads(channelId, archivedStatus), {
748
+ auth,
714
749
  query: makeURLSearchParams2(query),
715
750
  signal
716
751
  });
@@ -723,8 +758,9 @@ var ChannelsAPI = class {
723
758
  * @param query - The options for fetching joined archived threads
724
759
  * @param options - The options for fetching joined archived threads
725
760
  */
726
- async getJoinedPrivateArchivedThreads(channelId, query = {}, { signal } = {}) {
761
+ async getJoinedPrivateArchivedThreads(channelId, query = {}, { auth, signal } = {}) {
727
762
  return this.rest.get(Routes3.channelJoinedArchivedThreads(channelId), {
763
+ auth,
728
764
  query: makeURLSearchParams2(query),
729
765
  signal
730
766
  });
@@ -737,8 +773,9 @@ var ChannelsAPI = class {
737
773
  * @param body - The data for creating the webhook
738
774
  * @param options - The options for creating the webhook
739
775
  */
740
- async createWebhook(channelId, body, { reason, signal } = {}) {
776
+ async createWebhook(channelId, body, { auth, reason, signal } = {}) {
741
777
  return this.rest.post(Routes3.channelWebhooks(channelId), {
778
+ auth,
742
779
  reason,
743
780
  body,
744
781
  signal
@@ -749,9 +786,13 @@ var ChannelsAPI = class {
749
786
  *
750
787
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-channel-webhooks}
751
788
  * @param channelId - The id of the channel
789
+ * @param options - The options for fetching the webhooks
752
790
  */
753
- async getWebhooks(channelId) {
754
- return this.rest.get(Routes3.channelWebhooks(channelId));
791
+ async getWebhooks(channelId, { auth, signal } = {}) {
792
+ return this.rest.get(Routes3.channelWebhooks(channelId), {
793
+ auth,
794
+ signal
795
+ });
755
796
  }
756
797
  /**
757
798
  * Edits the permission overwrite for a user or role in a channel
@@ -762,8 +803,9 @@ var ChannelsAPI = class {
762
803
  * @param body - The data for editing the permission overwrite
763
804
  * @param options - The options for editing the permission overwrite
764
805
  */
765
- async editPermissionOverwrite(channelId, overwriteId, body, { reason, signal } = {}) {
806
+ async editPermissionOverwrite(channelId, overwriteId, body, { auth, reason, signal } = {}) {
766
807
  await this.rest.put(Routes3.channelPermission(channelId, overwriteId), {
808
+ auth,
767
809
  reason,
768
810
  body,
769
811
  signal
@@ -777,8 +819,9 @@ var ChannelsAPI = class {
777
819
  * @param overwriteId - The id of the user or role to delete the permission overwrite for
778
820
  * @param options - The options for deleting the permission overwrite
779
821
  */
780
- async deletePermissionOverwrite(channelId, overwriteId, { reason, signal } = {}) {
822
+ async deletePermissionOverwrite(channelId, overwriteId, { auth, reason, signal } = {}) {
781
823
  await this.rest.delete(Routes3.channelPermission(channelId, overwriteId), {
824
+ auth,
782
825
  reason,
783
826
  signal
784
827
  });
@@ -791,8 +834,9 @@ var ChannelsAPI = class {
791
834
  * @param body - The data for sending the soundboard sound
792
835
  * @param options - The options for sending the soundboard sound
793
836
  */
794
- async sendSoundboardSound(channelId, body, { signal } = {}) {
837
+ async sendSoundboardSound(channelId, body, { auth, signal } = {}) {
795
838
  return this.rest.post(Routes3.sendSoundboardSound(channelId), {
839
+ auth,
796
840
  body,
797
841
  signal
798
842
  });
@@ -819,8 +863,9 @@ var GuildsAPI = class {
819
863
  * @param query - The query options for fetching the guild
820
864
  * @param options - The options for fetching the guild
821
865
  */
822
- async get(guildId, query = {}, { signal } = {}) {
866
+ async get(guildId, query = {}, { auth, signal } = {}) {
823
867
  return this.rest.get(Routes4.guild(guildId), {
868
+ auth,
824
869
  query: makeURLSearchParams3(query),
825
870
  signal
826
871
  });
@@ -832,8 +877,9 @@ var GuildsAPI = class {
832
877
  * @param guildId - The id of the guild to fetch the preview from
833
878
  * @param options - The options for fetching the guild preview
834
879
  */
835
- async getPreview(guildId, { signal } = {}) {
880
+ async getPreview(guildId, { auth, signal } = {}) {
836
881
  return this.rest.get(Routes4.guildPreview(guildId), {
882
+ auth,
837
883
  signal
838
884
  });
839
885
  }
@@ -844,8 +890,8 @@ var GuildsAPI = class {
844
890
  * @param body - The guild to create
845
891
  * @param options - The options for creating the guild
846
892
  */
847
- async create(body, { signal } = {}) {
848
- return this.rest.post(Routes4.guilds(), { body, signal });
893
+ async create(body, { auth, signal } = {}) {
894
+ return this.rest.post(Routes4.guilds(), { auth, body, signal });
849
895
  }
850
896
  /**
851
897
  * Edits a guild
@@ -855,8 +901,9 @@ var GuildsAPI = class {
855
901
  * @param body - The new guild data
856
902
  * @param options - The options for editing the guild
857
903
  */
858
- async edit(guildId, body, { reason, signal } = {}) {
904
+ async edit(guildId, body, { auth, reason, signal } = {}) {
859
905
  return this.rest.patch(Routes4.guild(guildId), {
906
+ auth,
860
907
  reason,
861
908
  body,
862
909
  signal
@@ -869,8 +916,8 @@ var GuildsAPI = class {
869
916
  * @param guildId - The id of the guild to delete
870
917
  * @param options - The options for deleting this guild
871
918
  */
872
- async delete(guildId, { signal, reason } = {}) {
873
- await this.rest.delete(Routes4.guild(guildId), { reason, signal });
919
+ async delete(guildId, { auth, reason, signal } = {}) {
920
+ await this.rest.delete(Routes4.guild(guildId), { auth, reason, signal });
874
921
  }
875
922
  /**
876
923
  * Adds user to the guild
@@ -881,22 +928,24 @@ var GuildsAPI = class {
881
928
  * @param body - The data for adding users to the guild
882
929
  * @param options - The options for adding users to the guild
883
930
  */
884
- async addMember(guildId, userId, body, { signal } = {}) {
931
+ async addMember(guildId, userId, body, { auth, signal } = {}) {
885
932
  return this.rest.put(Routes4.guildMember(guildId, userId), {
933
+ auth,
886
934
  body,
887
935
  signal
888
936
  });
889
937
  }
890
938
  /**
891
- * Fetches all the members of a guild
939
+ * Fetches members of a guild.
892
940
  *
893
941
  * @see {@link https://discord.com/developers/docs/resources/guild#list-guild-members}
894
942
  * @param guildId - The id of the guild
895
943
  * @param query - The query for fetching the guild members
896
944
  * @param options - The options for fetching the guild members
897
945
  */
898
- async getMembers(guildId, query = {}, { signal } = {}) {
946
+ async getMembers(guildId, query = {}, { auth, signal } = {}) {
899
947
  return this.rest.get(Routes4.guildMembers(guildId), {
948
+ auth,
900
949
  query: makeURLSearchParams3(query),
901
950
  signal
902
951
  });
@@ -908,8 +957,9 @@ var GuildsAPI = class {
908
957
  * @param guildId - The id of the guild to fetch the channels from
909
958
  * @param options - The options for fetching the guild channels
910
959
  */
911
- async getChannels(guildId, { signal } = {}) {
960
+ async getChannels(guildId, { auth, signal } = {}) {
912
961
  return this.rest.get(Routes4.guildChannels(guildId), {
962
+ auth,
913
963
  signal
914
964
  });
915
965
  }
@@ -921,8 +971,9 @@ var GuildsAPI = class {
921
971
  * @param body - The data to create the new channel
922
972
  * @param options - The options for creating the guild channel
923
973
  */
924
- async createChannel(guildId, body, { reason, signal } = {}) {
974
+ async createChannel(guildId, body, { auth, reason, signal } = {}) {
925
975
  return this.rest.post(Routes4.guildChannels(guildId), {
976
+ auth,
926
977
  reason,
927
978
  body,
928
979
  signal
@@ -936,8 +987,8 @@ var GuildsAPI = class {
936
987
  * @param body - The data to edit the channel positions with
937
988
  * @param options - The options for editing the guild channel positions
938
989
  */
939
- async setChannelPositions(guildId, body, { reason, signal } = {}) {
940
- await this.rest.patch(Routes4.guildChannels(guildId), { reason, body, signal });
990
+ async setChannelPositions(guildId, body, { auth, reason, signal } = {}) {
991
+ await this.rest.patch(Routes4.guildChannels(guildId), { auth, reason, body, signal });
941
992
  }
942
993
  /**
943
994
  * Fetches the active threads in a guild
@@ -946,8 +997,8 @@ var GuildsAPI = class {
946
997
  * @param guildId - The id of the guild to fetch the active threads from
947
998
  * @param options - The options for fetching the active threads
948
999
  */
949
- async getActiveThreads(guildId, { signal } = {}) {
950
- return this.rest.get(Routes4.guildActiveThreads(guildId), { signal });
1000
+ async getActiveThreads(guildId, { auth, signal } = {}) {
1001
+ return this.rest.get(Routes4.guildActiveThreads(guildId), { auth, signal });
951
1002
  }
952
1003
  /**
953
1004
  * Fetches a guild member ban
@@ -957,8 +1008,8 @@ var GuildsAPI = class {
957
1008
  * @param userId - The id of the user to fetch the ban
958
1009
  * @param options - The options for fetching the ban
959
1010
  */
960
- async getMemberBan(guildId, userId, { signal } = {}) {
961
- return this.rest.get(Routes4.guildBan(guildId, userId), { signal });
1011
+ async getMemberBan(guildId, userId, { auth, signal } = {}) {
1012
+ return this.rest.get(Routes4.guildBan(guildId, userId), { auth, signal });
962
1013
  }
963
1014
  /**
964
1015
  * Fetches guild member bans
@@ -968,8 +1019,9 @@ var GuildsAPI = class {
968
1019
  * @param query - The query options for fetching the bans
969
1020
  * @param options - The options for fetching the bans
970
1021
  */
971
- async getMemberBans(guildId, query = {}, { signal } = {}) {
1022
+ async getMemberBans(guildId, query = {}, { auth, signal } = {}) {
972
1023
  return this.rest.get(Routes4.guildBans(guildId), {
1024
+ auth,
973
1025
  query: makeURLSearchParams3(query),
974
1026
  signal
975
1027
  });
@@ -983,8 +1035,8 @@ var GuildsAPI = class {
983
1035
  * @param body - The payload for banning the user
984
1036
  * @param options - The options for banning the user
985
1037
  */
986
- async banUser(guildId, userId, body = {}, { reason, signal } = {}) {
987
- await this.rest.put(Routes4.guildBan(guildId, userId), { reason, body, signal });
1038
+ async banUser(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1039
+ await this.rest.put(Routes4.guildBan(guildId, userId), { auth, reason, body, signal });
988
1040
  }
989
1041
  /**
990
1042
  * Unbans a user from a guild
@@ -994,8 +1046,8 @@ var GuildsAPI = class {
994
1046
  * @param userId - The id of the user to unban
995
1047
  * @param options - The options for unbanning the user
996
1048
  */
997
- async unbanUser(guildId, userId, { reason, signal } = {}) {
998
- await this.rest.delete(Routes4.guildBan(guildId, userId), { reason, signal });
1049
+ async unbanUser(guildId, userId, { auth, reason, signal } = {}) {
1050
+ await this.rest.delete(Routes4.guildBan(guildId, userId), { auth, reason, signal });
999
1051
  }
1000
1052
  /**
1001
1053
  * Bulk ban users from a guild
@@ -1005,8 +1057,9 @@ var GuildsAPI = class {
1005
1057
  * @param body - The data for bulk banning users
1006
1058
  * @param options - The options for bulk banning users
1007
1059
  */
1008
- async bulkBanUsers(guildId, body, { reason, signal } = {}) {
1060
+ async bulkBanUsers(guildId, body, { auth, reason, signal } = {}) {
1009
1061
  return this.rest.post(Routes4.guildBulkBan(guildId), {
1062
+ auth,
1010
1063
  reason,
1011
1064
  body,
1012
1065
  signal
@@ -1019,8 +1072,8 @@ var GuildsAPI = class {
1019
1072
  * @param guildId - The id of the guild to fetch the roles from
1020
1073
  * @param options - The options for fetching the guild roles
1021
1074
  */
1022
- async getRoles(guildId, { signal } = {}) {
1023
- return this.rest.get(Routes4.guildRoles(guildId), { signal });
1075
+ async getRoles(guildId, { auth, signal } = {}) {
1076
+ return this.rest.get(Routes4.guildRoles(guildId), { auth, signal });
1024
1077
  }
1025
1078
  /**
1026
1079
  * Get a role in a guild
@@ -1030,8 +1083,8 @@ var GuildsAPI = class {
1030
1083
  * @param roleId - The id of the role to fetch
1031
1084
  * @param options - The options for fetching the guild role
1032
1085
  */
1033
- async getRole(guildId, roleId, { signal } = {}) {
1034
- return this.rest.get(Routes4.guildRole(guildId, roleId), { signal });
1086
+ async getRole(guildId, roleId, { auth, signal } = {}) {
1087
+ return this.rest.get(Routes4.guildRole(guildId, roleId), { auth, signal });
1035
1088
  }
1036
1089
  /**
1037
1090
  * Creates a guild role
@@ -1041,8 +1094,13 @@ var GuildsAPI = class {
1041
1094
  * @param body - The data to create the role with
1042
1095
  * @param options - The options for creating the guild role
1043
1096
  */
1044
- async createRole(guildId, body, { reason, signal } = {}) {
1045
- return this.rest.post(Routes4.guildRoles(guildId), { reason, body, signal });
1097
+ async createRole(guildId, body, { auth, reason, signal } = {}) {
1098
+ return this.rest.post(Routes4.guildRoles(guildId), {
1099
+ auth,
1100
+ reason,
1101
+ body,
1102
+ signal
1103
+ });
1046
1104
  }
1047
1105
  /**
1048
1106
  * Sets role positions in a guild
@@ -1052,8 +1110,9 @@ var GuildsAPI = class {
1052
1110
  * @param body - The data for setting a role position
1053
1111
  * @param options - The options for setting role positions
1054
1112
  */
1055
- async setRolePositions(guildId, body, { reason, signal } = {}) {
1113
+ async setRolePositions(guildId, body, { auth, reason, signal } = {}) {
1056
1114
  return this.rest.patch(Routes4.guildRoles(guildId), {
1115
+ auth,
1057
1116
  reason,
1058
1117
  body,
1059
1118
  signal
@@ -1068,8 +1127,9 @@ var GuildsAPI = class {
1068
1127
  * @param body - data for editing the role
1069
1128
  * @param options - The options for editing the guild role
1070
1129
  */
1071
- async editRole(guildId, roleId, body, { reason, signal } = {}) {
1130
+ async editRole(guildId, roleId, body, { auth, reason, signal } = {}) {
1072
1131
  return this.rest.patch(Routes4.guildRole(guildId, roleId), {
1132
+ auth,
1073
1133
  reason,
1074
1134
  body,
1075
1135
  signal
@@ -1083,8 +1143,8 @@ var GuildsAPI = class {
1083
1143
  * @param roleId - The id of the role to delete
1084
1144
  * @param options - The options for deleting the guild role
1085
1145
  */
1086
- async deleteRole(guildId, roleId, { reason, signal } = {}) {
1087
- await this.rest.delete(Routes4.guildRole(guildId, roleId), { reason, signal });
1146
+ async deleteRole(guildId, roleId, { auth, reason, signal } = {}) {
1147
+ await this.rest.delete(Routes4.guildRole(guildId, roleId), { auth, reason, signal });
1088
1148
  }
1089
1149
  /**
1090
1150
  * Edits the multi-factor-authentication (MFA) level of a guild
@@ -1094,8 +1154,9 @@ var GuildsAPI = class {
1094
1154
  * @param level - The new MFA level
1095
1155
  * @param options - The options for editing the MFA level
1096
1156
  */
1097
- async editMFALevel(guildId, level, { reason, signal } = {}) {
1157
+ async editMFALevel(guildId, level, { auth, reason, signal } = {}) {
1098
1158
  return this.rest.post(Routes4.guildMFA(guildId), {
1159
+ auth,
1099
1160
  reason,
1100
1161
  signal,
1101
1162
  body: { level }
@@ -1109,8 +1170,9 @@ var GuildsAPI = class {
1109
1170
  * @param query - The query options for fetching the number of pruned members
1110
1171
  * @param options - The options for fetching the number of pruned members
1111
1172
  */
1112
- async getPruneCount(guildId, query = {}, { signal } = {}) {
1173
+ async getPruneCount(guildId, query = {}, { auth, signal } = {}) {
1113
1174
  return this.rest.get(Routes4.guildPrune(guildId), {
1175
+ auth,
1114
1176
  signal,
1115
1177
  query: makeURLSearchParams3(query)
1116
1178
  });
@@ -1123,8 +1185,9 @@ var GuildsAPI = class {
1123
1185
  * @param body - The options for pruning members
1124
1186
  * @param options - The options for initiating the prune
1125
1187
  */
1126
- async beginPrune(guildId, body = {}, { reason, signal } = {}) {
1188
+ async beginPrune(guildId, body = {}, { auth, reason, signal } = {}) {
1127
1189
  return this.rest.post(Routes4.guildPrune(guildId), {
1190
+ auth,
1128
1191
  body,
1129
1192
  reason,
1130
1193
  signal
@@ -1137,8 +1200,11 @@ var GuildsAPI = class {
1137
1200
  * @param guildId - The id of the guild to fetch the voice regions from
1138
1201
  * @param options - The options for fetching the voice regions
1139
1202
  */
1140
- async getVoiceRegions(guildId, { signal } = {}) {
1141
- return this.rest.get(Routes4.guildVoiceRegions(guildId), { signal });
1203
+ async getVoiceRegions(guildId, { auth, signal } = {}) {
1204
+ return this.rest.get(Routes4.guildVoiceRegions(guildId), {
1205
+ auth,
1206
+ signal
1207
+ });
1142
1208
  }
1143
1209
  /**
1144
1210
  * Fetches the invites for a guild
@@ -1147,8 +1213,8 @@ var GuildsAPI = class {
1147
1213
  * @param guildId - The id of the guild to fetch the invites from
1148
1214
  * @param options - The options for fetching the invites
1149
1215
  */
1150
- async getInvites(guildId, { signal } = {}) {
1151
- return this.rest.get(Routes4.guildInvites(guildId), { signal });
1216
+ async getInvites(guildId, { auth, signal } = {}) {
1217
+ return this.rest.get(Routes4.guildInvites(guildId), { auth, signal });
1152
1218
  }
1153
1219
  /**
1154
1220
  * Fetches the integrations for a guild
@@ -1157,8 +1223,11 @@ var GuildsAPI = class {
1157
1223
  * @param guildId - The id of the guild to fetch the integrations from
1158
1224
  * @param options - The options for fetching the integrations
1159
1225
  */
1160
- async getIntegrations(guildId, { signal } = {}) {
1161
- return this.rest.get(Routes4.guildIntegrations(guildId), { signal });
1226
+ async getIntegrations(guildId, { auth, signal } = {}) {
1227
+ return this.rest.get(Routes4.guildIntegrations(guildId), {
1228
+ auth,
1229
+ signal
1230
+ });
1162
1231
  }
1163
1232
  /**
1164
1233
  * Deletes an integration from a guild
@@ -1168,8 +1237,8 @@ var GuildsAPI = class {
1168
1237
  * @param integrationId - The id of the integration to delete
1169
1238
  * @param options - The options for deleting the integration
1170
1239
  */
1171
- async deleteIntegration(guildId, integrationId, { reason, signal } = {}) {
1172
- await this.rest.delete(Routes4.guildIntegration(guildId, integrationId), { reason, signal });
1240
+ async deleteIntegration(guildId, integrationId, { auth, reason, signal } = {}) {
1241
+ await this.rest.delete(Routes4.guildIntegration(guildId, integrationId), { auth, reason, signal });
1173
1242
  }
1174
1243
  /**
1175
1244
  * Fetches the widget settings for a guild
@@ -1178,8 +1247,9 @@ var GuildsAPI = class {
1178
1247
  * @param guildId - The id of the guild to fetch the widget settings from
1179
1248
  * @param options - The options for fetching the widget settings
1180
1249
  */
1181
- async getWidgetSettings(guildId, { signal } = {}) {
1250
+ async getWidgetSettings(guildId, { auth, signal } = {}) {
1182
1251
  return this.rest.get(Routes4.guildWidgetSettings(guildId), {
1252
+ auth,
1183
1253
  signal
1184
1254
  });
1185
1255
  }
@@ -1191,8 +1261,9 @@ var GuildsAPI = class {
1191
1261
  * @param body - The new widget settings data
1192
1262
  * @param options - The options for editing the widget settings
1193
1263
  */
1194
- async editWidgetSettings(guildId, body, { reason, signal } = {}) {
1264
+ async editWidgetSettings(guildId, body, { auth, reason, signal } = {}) {
1195
1265
  return this.rest.patch(Routes4.guildWidgetSettings(guildId), {
1266
+ auth,
1196
1267
  reason,
1197
1268
  body,
1198
1269
  signal
@@ -1205,8 +1276,8 @@ var GuildsAPI = class {
1205
1276
  * @param guildId - The id of the guild to fetch the widget from
1206
1277
  * @param options - The options for fetching the widget
1207
1278
  */
1208
- async getWidget(guildId, { signal } = {}) {
1209
- return this.rest.get(Routes4.guildWidgetJSON(guildId), { signal });
1279
+ async getWidget(guildId, { auth, signal } = {}) {
1280
+ return this.rest.get(Routes4.guildWidgetJSON(guildId), { auth, signal });
1210
1281
  }
1211
1282
  /**
1212
1283
  * Fetches the vanity url for a guild
@@ -1215,8 +1286,8 @@ var GuildsAPI = class {
1215
1286
  * @param guildId - The id of the guild to fetch the vanity url from
1216
1287
  * @param options - The options for fetching the vanity url
1217
1288
  */
1218
- async getVanityURL(guildId, { signal } = {}) {
1219
- return this.rest.get(Routes4.guildVanityUrl(guildId), { signal });
1289
+ async getVanityURL(guildId, { auth, signal } = {}) {
1290
+ return this.rest.get(Routes4.guildVanityUrl(guildId), { auth, signal });
1220
1291
  }
1221
1292
  /**
1222
1293
  * Fetches the widget image for a guild
@@ -1226,8 +1297,9 @@ var GuildsAPI = class {
1226
1297
  * @param style - The style of the widget image
1227
1298
  * @param options - The options for fetching the widget image
1228
1299
  */
1229
- async getWidgetImage(guildId, style, { signal } = {}) {
1300
+ async getWidgetImage(guildId, style, { auth, signal } = {}) {
1230
1301
  return this.rest.get(Routes4.guildWidgetImage(guildId), {
1302
+ auth,
1231
1303
  query: makeURLSearchParams3({ style }),
1232
1304
  signal
1233
1305
  });
@@ -1239,8 +1311,11 @@ var GuildsAPI = class {
1239
1311
  * @param guildId - The id of the guild to fetch the welcome screen from
1240
1312
  * @param options - The options for fetching the welcome screen
1241
1313
  */
1242
- async getWelcomeScreen(guildId, { signal } = {}) {
1243
- return this.rest.get(Routes4.guildWelcomeScreen(guildId), { signal });
1314
+ async getWelcomeScreen(guildId, { auth, signal } = {}) {
1315
+ return this.rest.get(Routes4.guildWelcomeScreen(guildId), {
1316
+ auth,
1317
+ signal
1318
+ });
1244
1319
  }
1245
1320
  /**
1246
1321
  * Edits the welcome screen for a guild
@@ -1250,8 +1325,9 @@ var GuildsAPI = class {
1250
1325
  * @param body - The new welcome screen data
1251
1326
  * @param options - The options for editing the welcome screen
1252
1327
  */
1253
- async editWelcomeScreen(guildId, body, { reason, signal } = {}) {
1328
+ async editWelcomeScreen(guildId, body, { auth, reason, signal } = {}) {
1254
1329
  return this.rest.patch(Routes4.guildWelcomeScreen(guildId), {
1330
+ auth,
1255
1331
  reason,
1256
1332
  body,
1257
1333
  signal
@@ -1264,8 +1340,8 @@ var GuildsAPI = class {
1264
1340
  * @param guildId - The id of the guild to fetch the emojis from
1265
1341
  * @param options - The options for fetching the emojis
1266
1342
  */
1267
- async getEmojis(guildId, { signal } = {}) {
1268
- return this.rest.get(Routes4.guildEmojis(guildId), { signal });
1343
+ async getEmojis(guildId, { auth, signal } = {}) {
1344
+ return this.rest.get(Routes4.guildEmojis(guildId), { auth, signal });
1269
1345
  }
1270
1346
  /**
1271
1347
  * Fetches an emoji for a guild
@@ -1275,8 +1351,8 @@ var GuildsAPI = class {
1275
1351
  * @param emojiId - The id of the emoji to fetch
1276
1352
  * @param options - The options for fetching the emoji
1277
1353
  */
1278
- async getEmoji(guildId, emojiId, { signal } = {}) {
1279
- return this.rest.get(Routes4.guildEmoji(guildId, emojiId), { signal });
1354
+ async getEmoji(guildId, emojiId, { auth, signal } = {}) {
1355
+ return this.rest.get(Routes4.guildEmoji(guildId, emojiId), { auth, signal });
1280
1356
  }
1281
1357
  /**
1282
1358
  * Creates a new emoji for a guild
@@ -1286,8 +1362,9 @@ var GuildsAPI = class {
1286
1362
  * @param body - The data for creating the emoji
1287
1363
  * @param options - The options for creating the emoji
1288
1364
  */
1289
- async createEmoji(guildId, body, { reason, signal } = {}) {
1365
+ async createEmoji(guildId, body, { auth, reason, signal } = {}) {
1290
1366
  return this.rest.post(Routes4.guildEmojis(guildId), {
1367
+ auth,
1291
1368
  reason,
1292
1369
  body,
1293
1370
  signal
@@ -1302,8 +1379,9 @@ var GuildsAPI = class {
1302
1379
  * @param body - The data for editing the emoji
1303
1380
  * @param options - The options for editing the emoji
1304
1381
  */
1305
- async editEmoji(guildId, emojiId, body, { reason, signal } = {}) {
1382
+ async editEmoji(guildId, emojiId, body, { auth, reason, signal } = {}) {
1306
1383
  return this.rest.patch(Routes4.guildEmoji(guildId, emojiId), {
1384
+ auth,
1307
1385
  reason,
1308
1386
  body,
1309
1387
  signal
@@ -1317,8 +1395,8 @@ var GuildsAPI = class {
1317
1395
  * @param emojiId - The id of the emoji to delete
1318
1396
  * @param options - The options for deleting the emoji
1319
1397
  */
1320
- async deleteEmoji(guildId, emojiId, { reason, signal } = {}) {
1321
- await this.rest.delete(Routes4.guildEmoji(guildId, emojiId), { reason, signal });
1398
+ async deleteEmoji(guildId, emojiId, { auth, reason, signal } = {}) {
1399
+ await this.rest.delete(Routes4.guildEmoji(guildId, emojiId), { auth, reason, signal });
1322
1400
  }
1323
1401
  /**
1324
1402
  * Fetches all scheduled events for a guild
@@ -1328,8 +1406,9 @@ var GuildsAPI = class {
1328
1406
  * @param query - The query options for fetching the scheduled events
1329
1407
  * @param options - The options for fetching the scheduled events
1330
1408
  */
1331
- async getScheduledEvents(guildId, query = {}, { signal } = {}) {
1409
+ async getScheduledEvents(guildId, query = {}, { auth, signal } = {}) {
1332
1410
  return this.rest.get(Routes4.guildScheduledEvents(guildId), {
1411
+ auth,
1333
1412
  query: makeURLSearchParams3(query),
1334
1413
  signal
1335
1414
  });
@@ -1342,8 +1421,9 @@ var GuildsAPI = class {
1342
1421
  * @param body - The data to create the event with
1343
1422
  * @param options - The options for creating the scheduled event
1344
1423
  */
1345
- async createScheduledEvent(guildId, body, { reason, signal } = {}) {
1424
+ async createScheduledEvent(guildId, body, { auth, reason, signal } = {}) {
1346
1425
  return this.rest.post(Routes4.guildScheduledEvents(guildId), {
1426
+ auth,
1347
1427
  reason,
1348
1428
  body,
1349
1429
  signal
@@ -1358,8 +1438,9 @@ var GuildsAPI = class {
1358
1438
  * @param query - The options for fetching the scheduled event
1359
1439
  * @param options - The options for fetching the scheduled event
1360
1440
  */
1361
- async getScheduledEvent(guildId, eventId, query = {}, { signal } = {}) {
1441
+ async getScheduledEvent(guildId, eventId, query = {}, { auth, signal } = {}) {
1362
1442
  return this.rest.get(Routes4.guildScheduledEvent(guildId, eventId), {
1443
+ auth,
1363
1444
  query: makeURLSearchParams3(query),
1364
1445
  signal
1365
1446
  });
@@ -1373,8 +1454,9 @@ var GuildsAPI = class {
1373
1454
  * @param body - The new event data
1374
1455
  * @param options - The options for editing the scheduled event
1375
1456
  */
1376
- async editScheduledEvent(guildId, eventId, body, { reason, signal } = {}) {
1457
+ async editScheduledEvent(guildId, eventId, body, { auth, reason, signal } = {}) {
1377
1458
  return this.rest.patch(Routes4.guildScheduledEvent(guildId, eventId), {
1459
+ auth,
1378
1460
  reason,
1379
1461
  body,
1380
1462
  signal
@@ -1388,8 +1470,8 @@ var GuildsAPI = class {
1388
1470
  * @param eventId - The id of the scheduled event to delete
1389
1471
  * @param options - The options for deleting the scheduled event
1390
1472
  */
1391
- async deleteScheduledEvent(guildId, eventId, { reason, signal } = {}) {
1392
- await this.rest.delete(Routes4.guildScheduledEvent(guildId, eventId), { reason, signal });
1473
+ async deleteScheduledEvent(guildId, eventId, { auth, reason, signal } = {}) {
1474
+ await this.rest.delete(Routes4.guildScheduledEvent(guildId, eventId), { auth, reason, signal });
1393
1475
  }
1394
1476
  /**
1395
1477
  * Gets all users that are interested in a scheduled event
@@ -1400,8 +1482,9 @@ var GuildsAPI = class {
1400
1482
  * @param query - The options for fetching the scheduled event users
1401
1483
  * @param options - The options for fetching the scheduled event users
1402
1484
  */
1403
- async getScheduledEventUsers(guildId, eventId, query = {}, { signal } = {}) {
1485
+ async getScheduledEventUsers(guildId, eventId, query = {}, { auth, signal } = {}) {
1404
1486
  return this.rest.get(Routes4.guildScheduledEventUsers(guildId, eventId), {
1487
+ auth,
1405
1488
  query: makeURLSearchParams3(query),
1406
1489
  signal
1407
1490
  });
@@ -1413,8 +1496,8 @@ var GuildsAPI = class {
1413
1496
  * @param guildId - The id of the guild to fetch the templates from
1414
1497
  * @param options - The options for fetching the templates
1415
1498
  */
1416
- async getTemplates(guildId, { signal } = {}) {
1417
- return this.rest.get(Routes4.guildTemplates(guildId), { signal });
1499
+ async getTemplates(guildId, { auth, signal } = {}) {
1500
+ return this.rest.get(Routes4.guildTemplates(guildId), { auth, signal });
1418
1501
  }
1419
1502
  /**
1420
1503
  * Syncs a template for a guild
@@ -1424,8 +1507,9 @@ var GuildsAPI = class {
1424
1507
  * @param templateCode - The code of the template to sync
1425
1508
  * @param options - The options for syncing the template
1426
1509
  */
1427
- async syncTemplate(guildId, templateCode, { signal } = {}) {
1510
+ async syncTemplate(guildId, templateCode, { auth, signal } = {}) {
1428
1511
  return this.rest.put(Routes4.guildTemplate(guildId, templateCode), {
1512
+ auth,
1429
1513
  signal
1430
1514
  });
1431
1515
  }
@@ -1438,8 +1522,9 @@ var GuildsAPI = class {
1438
1522
  * @param body - The data for editing the template
1439
1523
  * @param options - The options for editing the template
1440
1524
  */
1441
- async editTemplate(guildId, templateCode, body, { signal } = {}) {
1525
+ async editTemplate(guildId, templateCode, body, { auth, signal } = {}) {
1442
1526
  return this.rest.patch(Routes4.guildTemplate(guildId, templateCode), {
1527
+ auth,
1443
1528
  body,
1444
1529
  signal
1445
1530
  });
@@ -1452,8 +1537,8 @@ var GuildsAPI = class {
1452
1537
  * @param templateCode - The code of the template to delete
1453
1538
  * @param options - The options for deleting the template
1454
1539
  */
1455
- async deleteTemplate(guildId, templateCode, { signal } = {}) {
1456
- await this.rest.delete(Routes4.guildTemplate(guildId, templateCode), { signal });
1540
+ async deleteTemplate(guildId, templateCode, { auth, signal } = {}) {
1541
+ await this.rest.delete(Routes4.guildTemplate(guildId, templateCode), { auth, signal });
1457
1542
  }
1458
1543
  /**
1459
1544
  * Fetches all the stickers for a guild
@@ -1462,8 +1547,8 @@ var GuildsAPI = class {
1462
1547
  * @param guildId - The id of the guild to fetch the stickers from
1463
1548
  * @param options - The options for fetching the stickers
1464
1549
  */
1465
- async getStickers(guildId, { signal } = {}) {
1466
- return this.rest.get(Routes4.guildStickers(guildId), { signal });
1550
+ async getStickers(guildId, { auth, signal } = {}) {
1551
+ return this.rest.get(Routes4.guildStickers(guildId), { auth, signal });
1467
1552
  }
1468
1553
  /**
1469
1554
  * Fetches a sticker for a guild
@@ -1473,8 +1558,11 @@ var GuildsAPI = class {
1473
1558
  * @param stickerId - The id of the sticker to fetch
1474
1559
  * @param options - The options for fetching the sticker
1475
1560
  */
1476
- async getSticker(guildId, stickerId, { signal } = {}) {
1477
- return this.rest.get(Routes4.guildSticker(guildId, stickerId), { signal });
1561
+ async getSticker(guildId, stickerId, { auth, signal } = {}) {
1562
+ return this.rest.get(Routes4.guildSticker(guildId, stickerId), {
1563
+ auth,
1564
+ signal
1565
+ });
1478
1566
  }
1479
1567
  /**
1480
1568
  * Creates a sticker for a guild
@@ -1484,9 +1572,10 @@ var GuildsAPI = class {
1484
1572
  * @param body - The data for creating the sticker
1485
1573
  * @param options - The options for creating the sticker
1486
1574
  */
1487
- async createSticker(guildId, { file, ...body }, { reason, signal } = {}) {
1575
+ async createSticker(guildId, { file, ...body }, { auth, reason, signal } = {}) {
1488
1576
  const fileData = { ...file, key: "file" };
1489
1577
  return this.rest.post(Routes4.guildStickers(guildId), {
1578
+ auth,
1490
1579
  appendToFormData: true,
1491
1580
  body,
1492
1581
  files: [fileData],
@@ -1503,8 +1592,9 @@ var GuildsAPI = class {
1503
1592
  * @param body - The data for editing the sticker
1504
1593
  * @param options - The options for editing the sticker
1505
1594
  */
1506
- async editSticker(guildId, stickerId, body, { reason, signal } = {}) {
1595
+ async editSticker(guildId, stickerId, body, { auth, reason, signal } = {}) {
1507
1596
  return this.rest.patch(Routes4.guildSticker(guildId, stickerId), {
1597
+ auth,
1508
1598
  reason,
1509
1599
  body,
1510
1600
  signal
@@ -1518,8 +1608,8 @@ var GuildsAPI = class {
1518
1608
  * @param stickerId - The id of the sticker to delete
1519
1609
  * @param options - The options for deleting the sticker
1520
1610
  */
1521
- async deleteSticker(guildId, stickerId, { reason, signal } = {}) {
1522
- await this.rest.delete(Routes4.guildSticker(guildId, stickerId), { reason, signal });
1611
+ async deleteSticker(guildId, stickerId, { auth, reason, signal } = {}) {
1612
+ await this.rest.delete(Routes4.guildSticker(guildId, stickerId), { auth, reason, signal });
1523
1613
  }
1524
1614
  /**
1525
1615
  * Fetches the audit logs for a guild
@@ -1529,8 +1619,9 @@ var GuildsAPI = class {
1529
1619
  * @param query - The query options for fetching the audit logs
1530
1620
  * @param options - The options for fetching the audit logs
1531
1621
  */
1532
- async getAuditLogs(guildId, query = {}, { signal } = {}) {
1622
+ async getAuditLogs(guildId, query = {}, { auth, signal } = {}) {
1533
1623
  return this.rest.get(Routes4.guildAuditLog(guildId), {
1624
+ auth,
1534
1625
  query: makeURLSearchParams3(query),
1535
1626
  signal
1536
1627
  });
@@ -1542,8 +1633,9 @@ var GuildsAPI = class {
1542
1633
  * @param guildId - The id of the guild to fetch the auto moderation rules from
1543
1634
  * @param options - The options for fetching the auto moderation rules
1544
1635
  */
1545
- async getAutoModerationRules(guildId, { signal } = {}) {
1636
+ async getAutoModerationRules(guildId, { auth, signal } = {}) {
1546
1637
  return this.rest.get(Routes4.guildAutoModerationRules(guildId), {
1638
+ auth,
1547
1639
  signal
1548
1640
  });
1549
1641
  }
@@ -1555,8 +1647,9 @@ var GuildsAPI = class {
1555
1647
  * @param ruleId - The id of the auto moderation rule to fetch
1556
1648
  * @param options - The options for fetching the auto moderation rule
1557
1649
  */
1558
- async getAutoModerationRule(guildId, ruleId, { signal } = {}) {
1650
+ async getAutoModerationRule(guildId, ruleId, { auth, signal } = {}) {
1559
1651
  return this.rest.get(Routes4.guildAutoModerationRule(guildId, ruleId), {
1652
+ auth,
1560
1653
  signal
1561
1654
  });
1562
1655
  }
@@ -1568,8 +1661,9 @@ var GuildsAPI = class {
1568
1661
  * @param body - The data for creating the auto moderation rule
1569
1662
  * @param options - The options for creating the auto moderation rule
1570
1663
  */
1571
- async createAutoModerationRule(guildId, body, { reason, signal } = {}) {
1664
+ async createAutoModerationRule(guildId, body, { auth, reason, signal } = {}) {
1572
1665
  return this.rest.post(Routes4.guildAutoModerationRules(guildId), {
1666
+ auth,
1573
1667
  reason,
1574
1668
  body,
1575
1669
  signal
@@ -1584,8 +1678,9 @@ var GuildsAPI = class {
1584
1678
  * @param body - The data for editing the auto moderation rule
1585
1679
  * @param options - The options for editing the auto moderation rule
1586
1680
  */
1587
- async editAutoModerationRule(guildId, ruleId, body, { reason, signal } = {}) {
1681
+ async editAutoModerationRule(guildId, ruleId, body, { auth, reason, signal } = {}) {
1588
1682
  return this.rest.patch(Routes4.guildAutoModerationRule(guildId, ruleId), {
1683
+ auth,
1589
1684
  reason,
1590
1685
  body,
1591
1686
  signal
@@ -1599,8 +1694,8 @@ var GuildsAPI = class {
1599
1694
  * @param ruleId - The id of the auto moderation rule to delete
1600
1695
  * @param options - The options for deleting the auto moderation rule
1601
1696
  */
1602
- async deleteAutoModerationRule(guildId, ruleId, { reason, signal } = {}) {
1603
- await this.rest.delete(Routes4.guildAutoModerationRule(guildId, ruleId), { reason, signal });
1697
+ async deleteAutoModerationRule(guildId, ruleId, { auth, reason, signal } = {}) {
1698
+ await this.rest.delete(Routes4.guildAutoModerationRule(guildId, ruleId), { auth, reason, signal });
1604
1699
  }
1605
1700
  /**
1606
1701
  * Fetches a guild member
@@ -1610,8 +1705,8 @@ var GuildsAPI = class {
1610
1705
  * @param userId - The id of the user
1611
1706
  * @param options - The options for fetching the guild member
1612
1707
  */
1613
- async getMember(guildId, userId, { signal } = {}) {
1614
- return this.rest.get(Routes4.guildMember(guildId, userId), { signal });
1708
+ async getMember(guildId, userId, { auth, signal } = {}) {
1709
+ return this.rest.get(Routes4.guildMember(guildId, userId), { auth, signal });
1615
1710
  }
1616
1711
  /**
1617
1712
  * Searches for guild members
@@ -1621,8 +1716,9 @@ var GuildsAPI = class {
1621
1716
  * @param query - The query to search for
1622
1717
  * @param options - The options for searching for guild members
1623
1718
  */
1624
- async searchForMembers(guildId, query, { signal } = {}) {
1719
+ async searchForMembers(guildId, query, { auth, signal } = {}) {
1625
1720
  return this.rest.get(Routes4.guildMembersSearch(guildId), {
1721
+ auth,
1626
1722
  query: makeURLSearchParams3(query),
1627
1723
  signal
1628
1724
  });
@@ -1636,8 +1732,9 @@ var GuildsAPI = class {
1636
1732
  * @param body - The data for editing the guild member
1637
1733
  * @param options - The options for editing the guild member
1638
1734
  */
1639
- async editMember(guildId, userId, body = {}, { reason, signal } = {}) {
1735
+ async editMember(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1640
1736
  return this.rest.patch(Routes4.guildMember(guildId, userId), {
1737
+ auth,
1641
1738
  reason,
1642
1739
  body,
1643
1740
  signal
@@ -1651,8 +1748,8 @@ var GuildsAPI = class {
1651
1748
  * @param userId - The id of the user
1652
1749
  * @param options - The options for removing the guild member
1653
1750
  */
1654
- async removeMember(guildId, userId, { reason, signal } = {}) {
1655
- return this.rest.delete(Routes4.guildMember(guildId, userId), { reason, signal });
1751
+ async removeMember(guildId, userId, { auth, reason, signal } = {}) {
1752
+ return this.rest.delete(Routes4.guildMember(guildId, userId), { auth, reason, signal });
1656
1753
  }
1657
1754
  /**
1658
1755
  * Adds a role to a guild member
@@ -1663,8 +1760,8 @@ var GuildsAPI = class {
1663
1760
  * @param roleId - The id of the role
1664
1761
  * @param options - The options for adding a role to a guild member
1665
1762
  */
1666
- async addRoleToMember(guildId, userId, roleId, { reason, signal } = {}) {
1667
- await this.rest.put(Routes4.guildMemberRole(guildId, userId, roleId), { reason, signal });
1763
+ async addRoleToMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1764
+ await this.rest.put(Routes4.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1668
1765
  }
1669
1766
  /**
1670
1767
  * Removes a role from a guild member
@@ -1675,8 +1772,8 @@ var GuildsAPI = class {
1675
1772
  * @param roleId - The id of the role
1676
1773
  * @param options - The options for removing a role from a guild member
1677
1774
  */
1678
- async removeRoleFromMember(guildId, userId, roleId, { reason, signal } = {}) {
1679
- await this.rest.delete(Routes4.guildMemberRole(guildId, userId, roleId), { reason, signal });
1775
+ async removeRoleFromMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1776
+ await this.rest.delete(Routes4.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1680
1777
  }
1681
1778
  /**
1682
1779
  * Fetches a guild template
@@ -1685,8 +1782,8 @@ var GuildsAPI = class {
1685
1782
  * @param templateCode - The code of the template
1686
1783
  * @param options - The options for fetching the guild template
1687
1784
  */
1688
- async getTemplate(templateCode, { signal } = {}) {
1689
- return this.rest.get(Routes4.template(templateCode), { signal });
1785
+ async getTemplate(templateCode, { auth, signal } = {}) {
1786
+ return this.rest.get(Routes4.template(templateCode), { auth, signal });
1690
1787
  }
1691
1788
  /**
1692
1789
  * Creates a new template
@@ -1696,17 +1793,22 @@ var GuildsAPI = class {
1696
1793
  * @param body - The data for creating the template
1697
1794
  * @param options - The options for creating the template
1698
1795
  */
1699
- async createTemplate(templateCode, body, { signal } = {}) {
1700
- return this.rest.post(Routes4.template(templateCode), { body, signal });
1796
+ async createTemplate(templateCode, body, { auth, signal } = {}) {
1797
+ return this.rest.post(Routes4.template(templateCode), {
1798
+ auth,
1799
+ body,
1800
+ signal
1801
+ });
1701
1802
  }
1702
1803
  /**
1703
1804
  * Fetches webhooks for a guild
1704
1805
  *
1705
1806
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-guild-webhooks}
1706
1807
  * @param id - The id of the guild
1808
+ * @param options - The options for fetching the webhooks
1707
1809
  */
1708
- async getWebhooks(id) {
1709
- return this.rest.get(Routes4.guildWebhooks(id));
1810
+ async getWebhooks(id, { auth, signal } = {}) {
1811
+ return this.rest.get(Routes4.guildWebhooks(id), { auth, signal });
1710
1812
  }
1711
1813
  /**
1712
1814
  * Fetches a guild onboarding
@@ -1715,8 +1817,8 @@ var GuildsAPI = class {
1715
1817
  * @param guildId - The id of the guild
1716
1818
  * @param options - The options for fetching the guild onboarding
1717
1819
  */
1718
- async getOnboarding(guildId, { signal } = {}) {
1719
- return this.rest.get(Routes4.guildOnboarding(guildId), { signal });
1820
+ async getOnboarding(guildId, { auth, signal } = {}) {
1821
+ return this.rest.get(Routes4.guildOnboarding(guildId), { auth, signal });
1720
1822
  }
1721
1823
  /**
1722
1824
  * Edits a guild onboarding
@@ -1726,8 +1828,9 @@ var GuildsAPI = class {
1726
1828
  * @param body - The data for editing the guild onboarding
1727
1829
  * @param options - The options for editing the guild onboarding
1728
1830
  */
1729
- async editOnboarding(guildId, body, { reason, signal } = {}) {
1831
+ async editOnboarding(guildId, body, { auth, reason, signal } = {}) {
1730
1832
  return this.rest.put(Routes4.guildOnboarding(guildId), {
1833
+ auth,
1731
1834
  reason,
1732
1835
  body,
1733
1836
  signal
@@ -1740,8 +1843,9 @@ var GuildsAPI = class {
1740
1843
  * @param guildId - The id of the guild to fetch the soundboard sounds for
1741
1844
  * @param options - The options for fetching the soundboard sounds
1742
1845
  */
1743
- async getSoundboardSounds(guildId, { signal } = {}) {
1846
+ async getSoundboardSounds(guildId, { auth, signal } = {}) {
1744
1847
  return this.rest.get(Routes4.guildSoundboardSounds(guildId), {
1848
+ auth,
1745
1849
  signal
1746
1850
  });
1747
1851
  }
@@ -1753,8 +1857,9 @@ var GuildsAPI = class {
1753
1857
  * @param soundId - The id of the soundboard sound to fetch
1754
1858
  * @param options - The options for fetching the soundboard sound
1755
1859
  */
1756
- async getSoundboardSound(guildId, soundId, { signal } = {}) {
1860
+ async getSoundboardSound(guildId, soundId, { auth, signal } = {}) {
1757
1861
  return this.rest.get(Routes4.guildSoundboardSound(guildId, soundId), {
1862
+ auth,
1758
1863
  signal
1759
1864
  });
1760
1865
  }
@@ -1766,8 +1871,9 @@ var GuildsAPI = class {
1766
1871
  * @param body - The data for creating the soundboard sound
1767
1872
  * @param options - The options for creating the soundboard sound
1768
1873
  */
1769
- async createSoundboardSound(guildId, body, { reason, signal } = {}) {
1874
+ async createSoundboardSound(guildId, body, { auth, reason, signal } = {}) {
1770
1875
  return this.rest.post(Routes4.guildSoundboardSounds(guildId), {
1876
+ auth,
1771
1877
  body,
1772
1878
  reason,
1773
1879
  signal
@@ -1782,8 +1888,9 @@ var GuildsAPI = class {
1782
1888
  * @param body - The data for editing the soundboard sound
1783
1889
  * @param options - The options for editing the soundboard sound
1784
1890
  */
1785
- async editSoundboardSound(guildId, soundId, body, { reason, signal } = {}) {
1891
+ async editSoundboardSound(guildId, soundId, body, { auth, reason, signal } = {}) {
1786
1892
  return this.rest.patch(Routes4.guildSoundboardSound(guildId, soundId), {
1893
+ auth,
1787
1894
  body,
1788
1895
  reason,
1789
1896
  signal
@@ -1797,8 +1904,8 @@ var GuildsAPI = class {
1797
1904
  * @param soundId - The id of the soundboard sound to delete
1798
1905
  * @param options - The options for deleting the soundboard sound
1799
1906
  */
1800
- async deleteSoundboardSound(guildId, soundId, { reason, signal } = {}) {
1801
- await this.rest.delete(Routes4.guildSoundboardSound(guildId, soundId), { reason, signal });
1907
+ async deleteSoundboardSound(guildId, soundId, { auth, reason, signal } = {}) {
1908
+ await this.rest.delete(Routes4.guildSoundboardSound(guildId, soundId), { auth, reason, signal });
1802
1909
  }
1803
1910
  };
1804
1911
 
@@ -1947,6 +2054,17 @@ var InteractionsAPI = class {
1947
2054
  });
1948
2055
  return with_response ? response : void 0;
1949
2056
  }
2057
+ async launchActivity(interactionId, interactionToken, { with_response } = {}, { signal } = {}) {
2058
+ const response = await this.rest.post(Routes5.interactionCallback(interactionId, interactionToken), {
2059
+ query: makeURLSearchParams4({ with_response }),
2060
+ auth: false,
2061
+ body: {
2062
+ type: InteractionResponseType.LaunchActivity
2063
+ },
2064
+ signal
2065
+ });
2066
+ return with_response ? response : void 0;
2067
+ }
1950
2068
  };
1951
2069
 
1952
2070
  // src/api/invite.ts
@@ -1967,8 +2085,9 @@ var InvitesAPI = class {
1967
2085
  * @param query - The options for fetching the invite
1968
2086
  * @param options - The options for fetching the invite
1969
2087
  */
1970
- async get(code, query = {}, { signal } = {}) {
2088
+ async get(code, query = {}, { auth, signal } = {}) {
1971
2089
  return this.rest.get(Routes6.invite(code), {
2090
+ auth,
1972
2091
  query: makeURLSearchParams5(query),
1973
2092
  signal
1974
2093
  });
@@ -1980,8 +2099,8 @@ var InvitesAPI = class {
1980
2099
  * @param code - The invite code
1981
2100
  * @param options - The options for deleting the invite
1982
2101
  */
1983
- async delete(code, { reason, signal } = {}) {
1984
- await this.rest.delete(Routes6.invite(code), { reason, signal });
2102
+ async delete(code, { auth, reason, signal } = {}) {
2103
+ await this.rest.delete(Routes6.invite(code), { auth, reason, signal });
1985
2104
  }
1986
2105
  };
1987
2106
 
@@ -2004,8 +2123,8 @@ var MonetizationAPI = class {
2004
2123
  * @param applicationId - The application id to fetch SKUs for
2005
2124
  * @param options - The options for fetching the SKUs.
2006
2125
  */
2007
- async getSKUs(applicationId, { signal } = {}) {
2008
- return this.rest.get(Routes7.skus(applicationId), { signal });
2126
+ async getSKUs(applicationId, { auth, signal } = {}) {
2127
+ return this.rest.get(Routes7.skus(applicationId), { auth, signal });
2009
2128
  }
2010
2129
  /**
2011
2130
  * Fetches subscriptions for an SKU.
@@ -2015,8 +2134,9 @@ var MonetizationAPI = class {
2015
2134
  * @param query - The query options for fetching subscriptions
2016
2135
  * @param options - The options for fetching subscriptions
2017
2136
  */
2018
- async getSKUSubscriptions(skuId, query = {}, { signal } = {}) {
2137
+ async getSKUSubscriptions(skuId, query = {}, { auth, signal } = {}) {
2019
2138
  return this.rest.get(Routes7.skuSubscriptions(skuId), {
2139
+ auth,
2020
2140
  signal,
2021
2141
  query: makeURLSearchParams6(query)
2022
2142
  });
@@ -2029,8 +2149,9 @@ var MonetizationAPI = class {
2029
2149
  * @param subscriptionId - The subscription id to fetch
2030
2150
  * @param options - The options for fetching the subscription
2031
2151
  */
2032
- async getSKUSubscription(skuId, subscriptionId, { signal } = {}) {
2152
+ async getSKUSubscription(skuId, subscriptionId, { auth, signal } = {}) {
2033
2153
  return this.rest.get(Routes7.skuSubscription(skuId, subscriptionId), {
2154
+ auth,
2034
2155
  signal
2035
2156
  });
2036
2157
  }
@@ -2042,8 +2163,9 @@ var MonetizationAPI = class {
2042
2163
  * @param query - The query options for fetching entitlements
2043
2164
  * @param options - The options for fetching entitlements
2044
2165
  */
2045
- async getEntitlements(applicationId, query = {}, { signal } = {}) {
2166
+ async getEntitlements(applicationId, query = {}, { auth, signal } = {}) {
2046
2167
  return this.rest.get(Routes7.entitlements(applicationId), {
2168
+ auth,
2047
2169
  signal,
2048
2170
  query: makeURLSearchParams6(query)
2049
2171
  });
@@ -2056,8 +2178,9 @@ var MonetizationAPI = class {
2056
2178
  * @param entitlementId - The entitlement id to fetch
2057
2179
  * @param options - The options for fetching the entitlement
2058
2180
  */
2059
- async getEntitlement(applicationId, entitlementId, { signal } = {}) {
2181
+ async getEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2060
2182
  return this.rest.get(Routes7.entitlement(applicationId, entitlementId), {
2183
+ auth,
2061
2184
  signal
2062
2185
  });
2063
2186
  }
@@ -2069,8 +2192,9 @@ var MonetizationAPI = class {
2069
2192
  * @param body - The data for creating the entitlement
2070
2193
  * @param options - The options for creating the entitlement
2071
2194
  */
2072
- async createTestEntitlement(applicationId, body, { signal } = {}) {
2195
+ async createTestEntitlement(applicationId, body, { auth, signal } = {}) {
2073
2196
  return this.rest.post(Routes7.entitlements(applicationId), {
2197
+ auth,
2074
2198
  body,
2075
2199
  signal
2076
2200
  });
@@ -2083,8 +2207,8 @@ var MonetizationAPI = class {
2083
2207
  * @param entitlementId - The entitlement id to delete
2084
2208
  * @param options - The options for deleting the entitlement
2085
2209
  */
2086
- async deleteTestEntitlement(applicationId, entitlementId, { signal } = {}) {
2087
- await this.rest.delete(Routes7.entitlement(applicationId, entitlementId), { signal });
2210
+ async deleteTestEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2211
+ await this.rest.delete(Routes7.entitlement(applicationId, entitlementId), { auth, signal });
2088
2212
  }
2089
2213
  /**
2090
2214
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
@@ -2094,8 +2218,8 @@ var MonetizationAPI = class {
2094
2218
  * @param entitlementId - The entitlement id to consume
2095
2219
  * @param options - The options for consuming the entitlement
2096
2220
  */
2097
- async consumeEntitlement(applicationId, entitlementId, { signal } = {}) {
2098
- await this.rest.post(Routes7.consumeEntitlement(applicationId, entitlementId), { signal });
2221
+ async consumeEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2222
+ await this.rest.post(Routes7.consumeEntitlement(applicationId, entitlementId), { auth, signal });
2099
2223
  }
2100
2224
  };
2101
2225
 
@@ -2185,8 +2309,9 @@ var OAuth2API = class {
2185
2309
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
2186
2310
  * @param options - The options for the current bot application information request
2187
2311
  */
2188
- async getCurrentBotApplicationInformation({ signal } = {}) {
2312
+ async getCurrentBotApplicationInformation({ auth, signal } = {}) {
2189
2313
  return this.rest.get(Routes8.oauth2CurrentApplication(), {
2314
+ auth,
2190
2315
  signal
2191
2316
  });
2192
2317
  }
@@ -2196,8 +2321,9 @@ var OAuth2API = class {
2196
2321
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
2197
2322
  * @param options - The options for the current authorization information request
2198
2323
  */
2199
- async getCurrentAuthorizationInformation({ signal } = {}) {
2324
+ async getCurrentAuthorizationInformation({ auth, signal } = {}) {
2200
2325
  return this.rest.get(Routes8.oauth2CurrentAuthorization(), {
2326
+ auth,
2201
2327
  signal
2202
2328
  });
2203
2329
  }
@@ -2246,8 +2372,9 @@ var PollAPI = class {
2246
2372
  * @param query - The query for getting the list of voters
2247
2373
  * @param options - The options for getting the list of voters
2248
2374
  */
2249
- async getAnswerVoters(channelId, messageId, answerId, query = {}, { signal } = {}) {
2375
+ async getAnswerVoters(channelId, messageId, answerId, query = {}, { auth, signal } = {}) {
2250
2376
  return this.rest.get(Routes9.pollAnswerVoters(channelId, messageId, answerId), {
2377
+ auth,
2251
2378
  signal,
2252
2379
  query: makeURLSearchParams8(query)
2253
2380
  });
@@ -2260,8 +2387,9 @@ var PollAPI = class {
2260
2387
  * @param messageId - The id of the message containing the poll
2261
2388
  * @param options - The options for expiring the poll
2262
2389
  */
2263
- async expirePoll(channelId, messageId, { signal } = {}) {
2390
+ async expirePoll(channelId, messageId, { auth, signal } = {}) {
2264
2391
  return this.rest.post(Routes9.expirePoll(channelId, messageId), {
2392
+ auth,
2265
2393
  signal
2266
2394
  });
2267
2395
  }
@@ -2285,8 +2413,9 @@ var RoleConnectionsAPI = class {
2285
2413
  * @param applicationId - The id of the application to get role connection metadata records for
2286
2414
  * @param options - The options for fetching the role connection metadata records
2287
2415
  */
2288
- async getMetadataRecords(applicationId, { signal } = {}) {
2416
+ async getMetadataRecords(applicationId, { auth, signal } = {}) {
2289
2417
  return this.rest.get(Routes10.applicationRoleConnectionMetadata(applicationId), {
2418
+ auth,
2290
2419
  signal
2291
2420
  });
2292
2421
  }
@@ -2298,8 +2427,9 @@ var RoleConnectionsAPI = class {
2298
2427
  * @param body - The new role connection metadata records
2299
2428
  * @param options - The options for updating the role connection metadata records
2300
2429
  */
2301
- async updateMetadataRecords(applicationId, body, { signal } = {}) {
2430
+ async updateMetadataRecords(applicationId, body, { auth, signal } = {}) {
2302
2431
  return this.rest.put(Routes10.applicationRoleConnectionMetadata(applicationId), {
2432
+ auth,
2303
2433
  body,
2304
2434
  signal
2305
2435
  });
@@ -2321,8 +2451,9 @@ var SoundboardSoundsAPI = class {
2321
2451
  * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
2322
2452
  * @param options - The options for fetching the soundboard default sounds.
2323
2453
  */
2324
- async getSoundboardDefaultSounds({ signal } = {}) {
2454
+ async getSoundboardDefaultSounds({ auth, signal } = {}) {
2325
2455
  return this.rest.get(Routes11.soundboardDefaultSounds(), {
2456
+ auth,
2326
2457
  signal
2327
2458
  });
2328
2459
  }
@@ -2346,8 +2477,9 @@ var StageInstancesAPI = class {
2346
2477
  * @param body - The data for creating the new stage instance
2347
2478
  * @param options - The options for creating the new stage instance
2348
2479
  */
2349
- async create(body, { reason, signal } = {}) {
2480
+ async create(body, { auth, reason, signal } = {}) {
2350
2481
  return this.rest.post(Routes12.stageInstances(), {
2482
+ auth,
2351
2483
  body,
2352
2484
  reason,
2353
2485
  signal
@@ -2360,8 +2492,8 @@ var StageInstancesAPI = class {
2360
2492
  * @param channelId - The id of the channel
2361
2493
  * @param options - The options for fetching the stage instance
2362
2494
  */
2363
- async get(channelId, { signal } = {}) {
2364
- return this.rest.get(Routes12.stageInstance(channelId), { signal });
2495
+ async get(channelId, { auth, signal } = {}) {
2496
+ return this.rest.get(Routes12.stageInstance(channelId), { auth, signal });
2365
2497
  }
2366
2498
  /**
2367
2499
  * Edits a stage instance
@@ -2371,8 +2503,9 @@ var StageInstancesAPI = class {
2371
2503
  * @param body - The new stage instance data
2372
2504
  * @param options - The options for editing the stage instance
2373
2505
  */
2374
- async edit(channelId, body, { reason, signal } = {}) {
2506
+ async edit(channelId, body, { auth, reason, signal } = {}) {
2375
2507
  return this.rest.patch(Routes12.stageInstance(channelId), {
2508
+ auth,
2376
2509
  body,
2377
2510
  reason,
2378
2511
  signal
@@ -2385,8 +2518,8 @@ var StageInstancesAPI = class {
2385
2518
  * @param channelId - The id of the channel
2386
2519
  * @param options - The options for deleting the stage instance
2387
2520
  */
2388
- async delete(channelId, { reason, signal } = {}) {
2389
- await this.rest.delete(Routes12.stageInstance(channelId), { reason, signal });
2521
+ async delete(channelId, { auth, reason, signal } = {}) {
2522
+ await this.rest.delete(Routes12.stageInstance(channelId), { auth, reason, signal });
2390
2523
  }
2391
2524
  };
2392
2525
 
@@ -2408,8 +2541,8 @@ var StickersAPI = class {
2408
2541
  * @param packId - The id of the sticker pack
2409
2542
  * @param options - The options for fetching the sticker pack
2410
2543
  */
2411
- async getStickerPack(packId, { signal } = {}) {
2412
- return this.rest.get(Routes13.stickerPack(packId), { signal });
2544
+ async getStickerPack(packId, { auth, signal } = {}) {
2545
+ return this.rest.get(Routes13.stickerPack(packId), { auth, signal });
2413
2546
  }
2414
2547
  /**
2415
2548
  * Fetches all of the sticker packs
@@ -2417,8 +2550,8 @@ var StickersAPI = class {
2417
2550
  * @see {@link https://discord.com/developers/docs/resources/sticker#list-sticker-packs}
2418
2551
  * @param options - The options for fetching the sticker packs
2419
2552
  */
2420
- async getStickers({ signal } = {}) {
2421
- return this.rest.get(Routes13.stickerPacks(), { signal });
2553
+ async getStickers({ auth, signal } = {}) {
2554
+ return this.rest.get(Routes13.stickerPacks(), { auth, signal });
2422
2555
  }
2423
2556
  /**
2424
2557
  * Fetches a sticker
@@ -2427,8 +2560,8 @@ var StickersAPI = class {
2427
2560
  * @param stickerId - The id of the sticker
2428
2561
  * @param options - The options for fetching the sticker
2429
2562
  */
2430
- async get(stickerId, { signal } = {}) {
2431
- return this.rest.get(Routes13.sticker(stickerId), { signal });
2563
+ async get(stickerId, { auth, signal } = {}) {
2564
+ return this.rest.get(Routes13.sticker(stickerId), { auth, signal });
2432
2565
  }
2433
2566
  };
2434
2567
 
@@ -2450,8 +2583,8 @@ var ThreadsAPI = class {
2450
2583
  * @param threadId - The id of the thread to join
2451
2584
  * @param options - The options for joining the thread
2452
2585
  */
2453
- async join(threadId, { signal } = {}) {
2454
- await this.rest.put(Routes14.threadMembers(threadId, "@me"), { signal });
2586
+ async join(threadId, { auth, signal } = {}) {
2587
+ await this.rest.put(Routes14.threadMembers(threadId, "@me"), { auth, signal });
2455
2588
  }
2456
2589
  /**
2457
2590
  * Adds a member to a thread
@@ -2461,8 +2594,8 @@ var ThreadsAPI = class {
2461
2594
  * @param userId - The id of the user to add to the thread
2462
2595
  * @param options - The options for adding the member to the thread
2463
2596
  */
2464
- async addMember(threadId, userId, { signal } = {}) {
2465
- await this.rest.put(Routes14.threadMembers(threadId, userId), { signal });
2597
+ async addMember(threadId, userId, { auth, signal } = {}) {
2598
+ await this.rest.put(Routes14.threadMembers(threadId, userId), { auth, signal });
2466
2599
  }
2467
2600
  /**
2468
2601
  * Removes the current user from a thread
@@ -2471,8 +2604,8 @@ var ThreadsAPI = class {
2471
2604
  * @param threadId - The id of the thread to leave
2472
2605
  * @param options - The options for leaving the thread
2473
2606
  */
2474
- async leave(threadId, { signal } = {}) {
2475
- await this.rest.delete(Routes14.threadMembers(threadId, "@me"), { signal });
2607
+ async leave(threadId, { auth, signal } = {}) {
2608
+ await this.rest.delete(Routes14.threadMembers(threadId, "@me"), { auth, signal });
2476
2609
  }
2477
2610
  /**
2478
2611
  * Removes a member from a thread
@@ -2482,8 +2615,8 @@ var ThreadsAPI = class {
2482
2615
  * @param userId - The id of the user to remove from the thread
2483
2616
  * @param options - The options for removing the member from the thread
2484
2617
  */
2485
- async removeMember(threadId, userId, { signal } = {}) {
2486
- await this.rest.delete(Routes14.threadMembers(threadId, userId), { signal });
2618
+ async removeMember(threadId, userId, { auth, signal } = {}) {
2619
+ await this.rest.delete(Routes14.threadMembers(threadId, userId), { auth, signal });
2487
2620
  }
2488
2621
  /**
2489
2622
  * Fetches a member of a thread
@@ -2493,8 +2626,8 @@ var ThreadsAPI = class {
2493
2626
  * @param userId - The id of the user
2494
2627
  * @param options - The options for fetching the member
2495
2628
  */
2496
- async getMember(threadId, userId, { signal } = {}) {
2497
- return this.rest.get(Routes14.threadMembers(threadId, userId), { signal });
2629
+ async getMember(threadId, userId, { auth, signal } = {}) {
2630
+ return this.rest.get(Routes14.threadMembers(threadId, userId), { auth, signal });
2498
2631
  }
2499
2632
  /**
2500
2633
  * Fetches all members of a thread
@@ -2503,8 +2636,11 @@ var ThreadsAPI = class {
2503
2636
  * @param threadId - The id of the thread to fetch the members from
2504
2637
  * @param options - The options for fetching the members
2505
2638
  */
2506
- async getAllMembers(threadId, { signal } = {}) {
2507
- return this.rest.get(Routes14.threadMembers(threadId), { signal });
2639
+ async getAllMembers(threadId, { auth, signal } = {}) {
2640
+ return this.rest.get(Routes14.threadMembers(threadId), {
2641
+ auth,
2642
+ signal
2643
+ });
2508
2644
  }
2509
2645
  };
2510
2646
 
@@ -2527,8 +2663,8 @@ var UsersAPI = class {
2527
2663
  * @param userId - The id of the user to fetch
2528
2664
  * @param options - The options for fetching the user
2529
2665
  */
2530
- async get(userId, { signal } = {}) {
2531
- return this.rest.get(Routes15.user(userId), { signal });
2666
+ async get(userId, { auth, signal } = {}) {
2667
+ return this.rest.get(Routes15.user(userId), { auth, signal });
2532
2668
  }
2533
2669
  /**
2534
2670
  * Returns the user object of the requester's account
@@ -2536,8 +2672,8 @@ var UsersAPI = class {
2536
2672
  * @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
2537
2673
  * @param options - The options for fetching the current user
2538
2674
  */
2539
- async getCurrent({ signal } = {}) {
2540
- return this.rest.get(Routes15.user("@me"), { signal });
2675
+ async getCurrent({ auth, signal } = {}) {
2676
+ return this.rest.get(Routes15.user("@me"), { auth, signal });
2541
2677
  }
2542
2678
  /**
2543
2679
  * Returns a list of partial guild objects the current user is a member of
@@ -2546,8 +2682,9 @@ var UsersAPI = class {
2546
2682
  * @param query - The query options for fetching the current user's guilds
2547
2683
  * @param options - The options for fetching the guilds
2548
2684
  */
2549
- async getGuilds(query = {}, { signal } = {}) {
2685
+ async getGuilds(query = {}, { auth, signal } = {}) {
2550
2686
  return this.rest.get(Routes15.userGuilds(), {
2687
+ auth,
2551
2688
  query: makeURLSearchParams9(query),
2552
2689
  signal
2553
2690
  });
@@ -2559,8 +2696,8 @@ var UsersAPI = class {
2559
2696
  * @param guildId - The id of the guild
2560
2697
  * @param options - The options for leaving the guild
2561
2698
  */
2562
- async leaveGuild(guildId, { signal } = {}) {
2563
- await this.rest.delete(Routes15.userGuild(guildId), { signal });
2699
+ async leaveGuild(guildId, { auth, signal } = {}) {
2700
+ await this.rest.delete(Routes15.userGuild(guildId), { auth, signal });
2564
2701
  }
2565
2702
  /**
2566
2703
  * Edits the current user
@@ -2569,8 +2706,8 @@ var UsersAPI = class {
2569
2706
  * @param body - The new data for the current user
2570
2707
  * @param options - The options for editing the user
2571
2708
  */
2572
- async edit(body, { signal } = {}) {
2573
- return this.rest.patch(Routes15.user("@me"), { body, signal });
2709
+ async edit(body, { auth, signal } = {}) {
2710
+ return this.rest.patch(Routes15.user("@me"), { auth, body, signal });
2574
2711
  }
2575
2712
  /**
2576
2713
  * Fetches the guild member for the current user
@@ -2579,8 +2716,11 @@ var UsersAPI = class {
2579
2716
  * @param guildId - The id of the guild
2580
2717
  * @param options - The options for fetching the guild member
2581
2718
  */
2582
- async getGuildMember(guildId, { signal } = {}) {
2583
- return this.rest.get(Routes15.userGuildMember(guildId), { signal });
2719
+ async getGuildMember(guildId, { auth, signal } = {}) {
2720
+ return this.rest.get(Routes15.userGuildMember(guildId), {
2721
+ auth,
2722
+ signal
2723
+ });
2584
2724
  }
2585
2725
  /**
2586
2726
  * Edits the guild member for the current user
@@ -2590,8 +2730,9 @@ var UsersAPI = class {
2590
2730
  * @param body - The new data for the guild member
2591
2731
  * @param options - The options for editing the guild member
2592
2732
  */
2593
- async editCurrentGuildMember(guildId, body = {}, { reason, signal } = {}) {
2733
+ async editCurrentGuildMember(guildId, body = {}, { auth, reason, signal } = {}) {
2594
2734
  return this.rest.patch(Routes15.guildMember(guildId, "@me"), {
2735
+ auth,
2595
2736
  reason,
2596
2737
  body,
2597
2738
  signal
@@ -2604,8 +2745,9 @@ var UsersAPI = class {
2604
2745
  * @param userId - The id of the user to open a DM channel with
2605
2746
  * @param options - The options for opening the DM
2606
2747
  */
2607
- async createDM(userId, { signal } = {}) {
2748
+ async createDM(userId, { auth, signal } = {}) {
2608
2749
  return this.rest.post(Routes15.userChannels(), {
2750
+ auth,
2609
2751
  body: { recipient_id: userId },
2610
2752
  signal
2611
2753
  });
@@ -2616,8 +2758,8 @@ var UsersAPI = class {
2616
2758
  * @see {@link https://discord.com/developers/docs/resources/user#get-user-connections}
2617
2759
  * @param options - The options for fetching the user's connections
2618
2760
  */
2619
- async getConnections({ signal } = {}) {
2620
- return this.rest.get(Routes15.userConnections(), { signal });
2761
+ async getConnections({ auth, signal } = {}) {
2762
+ return this.rest.get(Routes15.userConnections(), { auth, signal });
2621
2763
  }
2622
2764
  /**
2623
2765
  * Gets the current user's active application role connection
@@ -2626,8 +2768,9 @@ var UsersAPI = class {
2626
2768
  * @param applicationId - The id of the application
2627
2769
  * @param options - The options for fetching the role connections
2628
2770
  */
2629
- async getApplicationRoleConnection(applicationId, { signal } = {}) {
2771
+ async getApplicationRoleConnection(applicationId, { auth, signal } = {}) {
2630
2772
  return this.rest.get(Routes15.userApplicationRoleConnection(applicationId), {
2773
+ auth,
2631
2774
  signal
2632
2775
  });
2633
2776
  }
@@ -2639,8 +2782,9 @@ var UsersAPI = class {
2639
2782
  * @param body - The data for updating the application role connection
2640
2783
  * @param options - The options for updating the application role connection
2641
2784
  */
2642
- async updateApplicationRoleConnection(applicationId, body, { signal } = {}) {
2785
+ async updateApplicationRoleConnection(applicationId, body, { auth, signal } = {}) {
2643
2786
  return this.rest.put(Routes15.userApplicationRoleConnection(applicationId), {
2787
+ auth,
2644
2788
  body,
2645
2789
  signal
2646
2790
  });
@@ -2664,8 +2808,8 @@ var VoiceAPI = class {
2664
2808
  * @see {@link https://discord.com/developers/docs/resources/voice#list-voice-regions}
2665
2809
  * @param options - The options for fetching the voice regions
2666
2810
  */
2667
- async getVoiceRegions({ signal } = {}) {
2668
- return this.rest.get(Routes16.voiceRegions(), { signal });
2811
+ async getVoiceRegions({ auth, signal } = {}) {
2812
+ return this.rest.get(Routes16.voiceRegions(), { auth, signal });
2669
2813
  }
2670
2814
  /**
2671
2815
  * Fetches voice state of a user by their id
@@ -2673,8 +2817,9 @@ var VoiceAPI = class {
2673
2817
  * @see {@link https://discord.com/developers/docs/resources/voice#get-user-voice-state}
2674
2818
  * @param options - The options for fetching user voice state
2675
2819
  */
2676
- async getUserVoiceState(guildId, userId, { signal } = {}) {
2820
+ async getUserVoiceState(guildId, userId, { auth, signal } = {}) {
2677
2821
  return this.rest.get(Routes16.guildVoiceState(guildId, userId), {
2822
+ auth,
2678
2823
  signal
2679
2824
  });
2680
2825
  }
@@ -2684,8 +2829,9 @@ var VoiceAPI = class {
2684
2829
  * @see {@link https://discord.com/developers/docs/resources/voice#get-current-user-voice-state}
2685
2830
  * @param options - The options for fetching user voice state
2686
2831
  */
2687
- async getVoiceState(guildId, { signal } = {}) {
2832
+ async getVoiceState(guildId, { auth, signal } = {}) {
2688
2833
  return this.rest.get(Routes16.guildVoiceState(guildId, "@me"), {
2834
+ auth,
2689
2835
  signal
2690
2836
  });
2691
2837
  }
@@ -2698,8 +2844,9 @@ var VoiceAPI = class {
2698
2844
  * @param body - The data for editing the voice state
2699
2845
  * @param options - The options for editing the voice state
2700
2846
  */
2701
- async editUserVoiceState(guildId, userId, body, { reason, signal } = {}) {
2847
+ async editUserVoiceState(guildId, userId, body, { auth, reason, signal } = {}) {
2702
2848
  return this.rest.patch(Routes16.guildVoiceState(guildId, userId), {
2849
+ auth,
2703
2850
  reason,
2704
2851
  body,
2705
2852
  signal
@@ -2713,8 +2860,9 @@ var VoiceAPI = class {
2713
2860
  * @param body - The data for editing the voice state
2714
2861
  * @param options - The options for editing the voice state
2715
2862
  */
2716
- async editVoiceState(guildId, body = {}, { signal } = {}) {
2863
+ async editVoiceState(guildId, body = {}, { auth, signal } = {}) {
2717
2864
  return this.rest.patch(Routes16.guildVoiceState(guildId, "@me"), {
2865
+ auth,
2718
2866
  body,
2719
2867
  signal
2720
2868
  });
@@ -3101,7 +3249,7 @@ __name(withFiles, "withFiles");
3101
3249
 
3102
3250
  // src/index.ts
3103
3251
  export * from "discord-api-types/v10";
3104
- var version = "3.0.0-dev.1737633902-687e2ae67";
3252
+ var version = "3.0.0-dev.1737763887-2cbf41800";
3105
3253
  export {
3106
3254
  API,
3107
3255
  ApplicationCommandsAPI,