@discordjs/core 3.0.0-dev.1737245588-aa90f00d1 → 3.0.0-dev.1737720294-670667d65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ declare class ApplicationCommandsAPI {
18
18
  * @param query - The query options for fetching commands
19
19
  * @param options - The options for fetching commands
20
20
  */
21
- getGlobalCommands(applicationId: Snowflake, query?: RESTGetAPIApplicationCommandsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIApplicationCommandsResult>;
21
+ getGlobalCommands(applicationId: Snowflake, query?: RESTGetAPIApplicationCommandsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIApplicationCommandsResult>;
22
22
  /**
23
23
  * Creates a new global command
24
24
  *
@@ -27,7 +27,7 @@ declare class ApplicationCommandsAPI {
27
27
  * @param body - The data for creating the command
28
28
  * @param options - The options for creating the command
29
29
  */
30
- createGlobalCommand(applicationId: Snowflake, body: RESTPostAPIApplicationCommandsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
30
+ createGlobalCommand(applicationId: Snowflake, body: RESTPostAPIApplicationCommandsJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
31
31
  /**
32
32
  * Fetches a global command
33
33
  *
@@ -36,7 +36,7 @@ declare class ApplicationCommandsAPI {
36
36
  * @param commandId - The command id to fetch
37
37
  * @param options - The options for fetching the command
38
38
  */
39
- getGlobalCommand(applicationId: Snowflake, commandId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
39
+ getGlobalCommand(applicationId: Snowflake, commandId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
40
40
  /**
41
41
  * Edits a global command
42
42
  *
@@ -46,7 +46,7 @@ declare class ApplicationCommandsAPI {
46
46
  * @param body - The data for editing the command
47
47
  * @param options - The options for editing the command
48
48
  */
49
- editGlobalCommand(applicationId: Snowflake, commandId: Snowflake, body: RESTPatchAPIApplicationCommandJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
49
+ editGlobalCommand(applicationId: Snowflake, commandId: Snowflake, body: RESTPatchAPIApplicationCommandJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplicationCommand>;
50
50
  /**
51
51
  * Deletes a global command
52
52
  *
@@ -55,7 +55,7 @@ declare class ApplicationCommandsAPI {
55
55
  * @param commandId - The id of the command to delete
56
56
  * @param options - The options for deleting a command
57
57
  */
58
- deleteGlobalCommand(applicationId: Snowflake, commandId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
58
+ deleteGlobalCommand(applicationId: Snowflake, commandId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
59
59
  /**
60
60
  * Overwrites global commands
61
61
  *
@@ -64,7 +64,7 @@ declare class ApplicationCommandsAPI {
64
64
  * @param body - The data for overwriting commands
65
65
  * @param options - The options for overwriting commands
66
66
  */
67
- bulkOverwriteGlobalCommands(applicationId: Snowflake, body: RESTPutAPIApplicationCommandsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPutAPIApplicationCommandsResult>;
67
+ bulkOverwriteGlobalCommands(applicationId: Snowflake, body: RESTPutAPIApplicationCommandsJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPutAPIApplicationCommandsResult>;
68
68
  /**
69
69
  * Fetches all commands for a guild
70
70
  *
@@ -74,7 +74,7 @@ declare class ApplicationCommandsAPI {
74
74
  * @param query - The data for fetching commands
75
75
  * @param options - The options for fetching commands
76
76
  */
77
- getGuildCommands(applicationId: Snowflake, guildId: Snowflake, query?: RESTGetAPIApplicationGuildCommandsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIApplicationGuildCommandsResult>;
77
+ getGuildCommands(applicationId: Snowflake, guildId: Snowflake, query?: RESTGetAPIApplicationGuildCommandsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIApplicationGuildCommandsResult>;
78
78
  /**
79
79
  * Creates a new command for a guild
80
80
  *
@@ -84,7 +84,7 @@ declare class ApplicationCommandsAPI {
84
84
  * @param body - The data for creating the command
85
85
  * @param options - The options for creating the command
86
86
  */
87
- createGuildCommand(applicationId: Snowflake, guildId: Snowflake, body: RESTPostAPIApplicationGuildCommandsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIApplicationGuildCommandsResult>;
87
+ createGuildCommand(applicationId: Snowflake, guildId: Snowflake, body: RESTPostAPIApplicationGuildCommandsJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPostAPIApplicationGuildCommandsResult>;
88
88
  /**
89
89
  * Fetches a guild command
90
90
  *
@@ -94,7 +94,7 @@ declare class ApplicationCommandsAPI {
94
94
  * @param commandId - The command id to fetch
95
95
  * @param options - The options for fetching the command
96
96
  */
97
- getGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIApplicationGuildCommandResult>;
97
+ getGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIApplicationGuildCommandResult>;
98
98
  /**
99
99
  * Edits a guild command
100
100
  *
@@ -105,7 +105,7 @@ declare class ApplicationCommandsAPI {
105
105
  * @param body - The data for editing the command
106
106
  * @param options - The options for editing the command
107
107
  */
108
- editGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, body: RESTPatchAPIApplicationGuildCommandJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPatchAPIApplicationGuildCommandResult>;
108
+ editGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, body: RESTPatchAPIApplicationGuildCommandJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPatchAPIApplicationGuildCommandResult>;
109
109
  /**
110
110
  * Deletes a guild command
111
111
  *
@@ -115,7 +115,7 @@ declare class ApplicationCommandsAPI {
115
115
  * @param commandId - The id of the command to delete
116
116
  * @param options - The options for deleting the command
117
117
  */
118
- deleteGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
118
+ deleteGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
119
119
  /**
120
120
  * Bulk overwrites guild commands
121
121
  *
@@ -125,7 +125,7 @@ declare class ApplicationCommandsAPI {
125
125
  * @param body - The data for overwriting commands
126
126
  * @param options - The options for overwriting the commands
127
127
  */
128
- bulkOverwriteGuildCommands(applicationId: Snowflake, guildId: Snowflake, body: RESTPutAPIApplicationGuildCommandsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPutAPIApplicationGuildCommandsResult>;
128
+ bulkOverwriteGuildCommands(applicationId: Snowflake, guildId: Snowflake, body: RESTPutAPIApplicationGuildCommandsJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPutAPIApplicationGuildCommandsResult>;
129
129
  /**
130
130
  * Fetches the permissions for a guild command
131
131
  *
@@ -135,7 +135,7 @@ declare class ApplicationCommandsAPI {
135
135
  * @param commandId - The command id to get the permissions for
136
136
  * @param options - The option for fetching the command
137
137
  */
138
- getGuildCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildApplicationCommandPermissions>;
138
+ getGuildCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildApplicationCommandPermissions>;
139
139
  /**
140
140
  * Fetches all permissions for all commands in a guild
141
141
  *
@@ -144,7 +144,7 @@ declare class ApplicationCommandsAPI {
144
144
  * @param guildId - The guild id to get the permissions for
145
145
  * @param options - The options for fetching permissions
146
146
  */
147
- getGuildCommandsPermissions(applicationId: Snowflake, guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
147
+ getGuildCommandsPermissions(applicationId: Snowflake, guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
148
148
  /**
149
149
  * Edits the permissions for a guild command
150
150
  *
@@ -168,7 +168,7 @@ declare class ApplicationsAPI {
168
168
  * @see {@link https://discord.com/developers/docs/resources/application#get-current-application}
169
169
  * @param options - The options for fetching the application
170
170
  */
171
- getCurrent({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplication>;
171
+ getCurrent({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplication>;
172
172
  /**
173
173
  * Edits properties of the application associated with the requesting bot user.
174
174
  *
@@ -176,7 +176,7 @@ declare class ApplicationsAPI {
176
176
  * @param body - The new application data
177
177
  * @param options - The options for editing the application
178
178
  */
179
- editCurrent(body: RESTPatchCurrentApplicationJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplication>;
179
+ editCurrent(body: RESTPatchCurrentApplicationJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplication>;
180
180
  /**
181
181
  * Fetches all emojis of an application
182
182
  *
@@ -184,7 +184,7 @@ declare class ApplicationsAPI {
184
184
  * @param applicationId - The id of the application to fetch the emojis of
185
185
  * @param options - The options for fetching the emojis
186
186
  */
187
- getEmojis(applicationId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIApplicationEmojisResult>;
187
+ getEmojis(applicationId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIApplicationEmojisResult>;
188
188
  /**
189
189
  * Fetches an emoji of an application
190
190
  *
@@ -193,7 +193,7 @@ declare class ApplicationsAPI {
193
193
  * @param emojiId - The id of the emoji to fetch
194
194
  * @param options - The options for fetching the emoji
195
195
  */
196
- getEmoji(applicationId: Snowflake, emojiId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
196
+ getEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
197
197
  /**
198
198
  * Creates a new emoji of an application
199
199
  *
@@ -202,7 +202,7 @@ declare class ApplicationsAPI {
202
202
  * @param body - The data for creating the emoji
203
203
  * @param options - The options for creating the emoji
204
204
  */
205
- createEmoji(applicationId: Snowflake, body: RESTPostAPIApplicationEmojiJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
205
+ createEmoji(applicationId: Snowflake, body: RESTPostAPIApplicationEmojiJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
206
206
  /**
207
207
  * Edits an emoji of an application
208
208
  *
@@ -212,7 +212,7 @@ declare class ApplicationsAPI {
212
212
  * @param body - The data for editing the emoji
213
213
  * @param options - The options for editing the emoji
214
214
  */
215
- editEmoji(applicationId: Snowflake, emojiId: Snowflake, body: RESTPatchAPIApplicationEmojiJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
215
+ editEmoji(applicationId: Snowflake, emojiId: Snowflake, body: RESTPatchAPIApplicationEmojiJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
216
216
  /**
217
217
  * Deletes an emoji of an application
218
218
  *
@@ -221,7 +221,7 @@ declare class ApplicationsAPI {
221
221
  * @param emojiId - The id of the emoji to delete
222
222
  * @param options - The options for deleting the emoji
223
223
  */
224
- deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
224
+ deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
225
225
  }
226
226
 
227
227
  interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
@@ -246,7 +246,7 @@ declare class ChannelsAPI {
246
246
  * @param body - The data for sending the message
247
247
  * @param options - The options for sending the message
248
248
  */
249
- createMessage(channelId: Snowflake, { files, ...body }: CreateMessageOptions, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIMessage>;
249
+ createMessage(channelId: Snowflake, { files, ...body }: CreateMessageOptions, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIMessage>;
250
250
  /**
251
251
  * Edits a message
252
252
  *
@@ -256,7 +256,7 @@ declare class ChannelsAPI {
256
256
  * @param body - The data for editing the message
257
257
  * @param options - The options for editing the message
258
258
  */
259
- editMessage(channelId: Snowflake, messageId: Snowflake, { files, ...body }: EditMessageOptions, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIMessage>;
259
+ editMessage(channelId: Snowflake, messageId: Snowflake, { files, ...body }: EditMessageOptions, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIMessage>;
260
260
  /**
261
261
  * Fetches the reactions for a message
262
262
  *
@@ -275,7 +275,7 @@ declare class ChannelsAPI {
275
275
  * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
276
276
  * ```
277
277
  */
278
- getMessageReactions(channelId: Snowflake, messageId: Snowflake, emoji: string, query?: RESTGetAPIChannelMessageReactionUsersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelMessageReactionUsersResult>;
278
+ getMessageReactions(channelId: Snowflake, messageId: Snowflake, emoji: string, query?: RESTGetAPIChannelMessageReactionUsersQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelMessageReactionUsersResult>;
279
279
  /**
280
280
  * Deletes a reaction for the current user
281
281
  *
@@ -293,7 +293,7 @@ declare class ChannelsAPI {
293
293
  * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
294
294
  * ```
295
295
  */
296
- deleteOwnMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
296
+ deleteOwnMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
297
297
  /**
298
298
  * Deletes a reaction for a user
299
299
  *
@@ -312,7 +312,7 @@ declare class ChannelsAPI {
312
312
  * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
313
313
  * ```
314
314
  */
315
- deleteUserMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
315
+ deleteUserMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
316
316
  /**
317
317
  * Deletes all reactions for a message
318
318
  *
@@ -321,7 +321,7 @@ declare class ChannelsAPI {
321
321
  * @param messageId - The id of the message to delete the reactions for
322
322
  * @param options - The options for deleting the reactions
323
323
  */
324
- deleteAllMessageReactions(channelId: Snowflake, messageId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
324
+ deleteAllMessageReactions(channelId: Snowflake, messageId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
325
325
  /**
326
326
  * Deletes all reactions of an emoji for a message
327
327
  *
@@ -339,7 +339,7 @@ declare class ChannelsAPI {
339
339
  * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
340
340
  * ```
341
341
  */
342
- deleteAllMessageReactionsForEmoji(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
342
+ deleteAllMessageReactionsForEmoji(channelId: Snowflake, messageId: Snowflake, emoji: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
343
343
  /**
344
344
  * Adds a reaction to a message
345
345
  *
@@ -357,7 +357,7 @@ declare class ChannelsAPI {
357
357
  * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
358
358
  * ```
359
359
  */
360
- addMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
360
+ addMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
361
361
  /**
362
362
  * Fetches a channel
363
363
  *
@@ -365,7 +365,7 @@ declare class ChannelsAPI {
365
365
  * @param channelId - The id of the channel
366
366
  * @param options - The options for fetching the channel
367
367
  */
368
- get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
368
+ get(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
369
369
  /**
370
370
  * Edits a channel
371
371
  *
@@ -374,7 +374,7 @@ declare class ChannelsAPI {
374
374
  * @param body - The new channel data
375
375
  * @param options - The options for editing the channel
376
376
  */
377
- edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
377
+ edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
378
378
  /**
379
379
  * Deletes a channel
380
380
  *
@@ -382,7 +382,7 @@ declare class ChannelsAPI {
382
382
  * @param channelId - The id of the channel to delete
383
383
  * @param options - The options for deleting the channel
384
384
  */
385
- delete(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
385
+ delete(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
386
386
  /**
387
387
  * Fetches the messages of a channel
388
388
  *
@@ -391,7 +391,7 @@ declare class ChannelsAPI {
391
391
  * @param query - The query options for fetching messages
392
392
  * @param options - The options for fetching the messages
393
393
  */
394
- getMessages(channelId: Snowflake, query?: RESTGetAPIChannelMessagesQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelMessagesResult>;
394
+ getMessages(channelId: Snowflake, query?: RESTGetAPIChannelMessagesQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelMessagesResult>;
395
395
  /**
396
396
  * Shows a typing indicator in a channel
397
397
  *
@@ -399,7 +399,7 @@ declare class ChannelsAPI {
399
399
  * @param channelId - The id of the channel to show the typing indicator in
400
400
  * @param options - The options for showing the typing indicator
401
401
  */
402
- showTyping(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
402
+ showTyping(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
403
403
  /**
404
404
  * Fetches the pinned messages of a channel
405
405
  *
@@ -407,7 +407,7 @@ declare class ChannelsAPI {
407
407
  * @param channelId - The id of the channel to fetch pinned messages from
408
408
  * @param options - The options for fetching the pinned messages
409
409
  */
410
- getPins(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelPinsResult>;
410
+ getPins(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelPinsResult>;
411
411
  /**
412
412
  * Pins a message in a channel
413
413
  *
@@ -416,7 +416,7 @@ declare class ChannelsAPI {
416
416
  * @param messageId - The id of the message to pin
417
417
  * @param options - The options for pinning the message
418
418
  */
419
- pinMessage(channelId: Snowflake, messageId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
419
+ pinMessage(channelId: Snowflake, messageId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
420
420
  /**
421
421
  * Deletes a message
422
422
  *
@@ -425,7 +425,7 @@ declare class ChannelsAPI {
425
425
  * @param messageId - The id of the message to delete
426
426
  * @param options - The options for deleting the message
427
427
  */
428
- deleteMessage(channelId: Snowflake, messageId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
428
+ deleteMessage(channelId: Snowflake, messageId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
429
429
  /**
430
430
  * Bulk deletes messages
431
431
  *
@@ -434,7 +434,7 @@ declare class ChannelsAPI {
434
434
  * @param messageIds - The ids of the messages to delete
435
435
  * @param options - The options for deleting the messages
436
436
  */
437
- bulkDeleteMessages(channelId: Snowflake, messageIds: Snowflake[], { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
437
+ bulkDeleteMessages(channelId: Snowflake, messageIds: Snowflake[], { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
438
438
  /**
439
439
  * Fetches a message
440
440
  *
@@ -443,7 +443,7 @@ declare class ChannelsAPI {
443
443
  * @param messageId - The id of the message to fetch
444
444
  * @param options - The options for fetching the message
445
445
  */
446
- getMessage(channelId: Snowflake, messageId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIMessage>;
446
+ getMessage(channelId: Snowflake, messageId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIMessage>;
447
447
  /**
448
448
  * Crossposts a message
449
449
  *
@@ -452,7 +452,7 @@ declare class ChannelsAPI {
452
452
  * @param messageId - The id of the message to crosspost
453
453
  * @param options - The options for crossposting the message
454
454
  */
455
- crosspostMessage(channelId: Snowflake, messageId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIMessage>;
455
+ crosspostMessage(channelId: Snowflake, messageId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIMessage>;
456
456
  /**
457
457
  * Unpins a message in a channel
458
458
  *
@@ -461,7 +461,7 @@ declare class ChannelsAPI {
461
461
  * @param messageId - The id of the message to unpin
462
462
  * @param options - The options for unpinning the message
463
463
  */
464
- unpinMessage(channelId: Snowflake, messageId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
464
+ unpinMessage(channelId: Snowflake, messageId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
465
465
  /**
466
466
  * Follows an announcement channel
467
467
  *
@@ -470,7 +470,7 @@ declare class ChannelsAPI {
470
470
  * @param webhookChannelId - The id of the webhook channel to follow the announcements in
471
471
  * @param options - The options for following the announcement channel
472
472
  */
473
- followAnnouncements(channelId: Snowflake, webhookChannelId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIFollowedChannel>;
473
+ followAnnouncements(channelId: Snowflake, webhookChannelId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIFollowedChannel>;
474
474
  /**
475
475
  * Creates a new invite for a channel
476
476
  *
@@ -479,7 +479,7 @@ declare class ChannelsAPI {
479
479
  * @param body - The data for creating the invite
480
480
  * @param options - The options for creating the invite
481
481
  */
482
- createInvite(channelId: Snowflake, body: RESTPostAPIChannelInviteJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIExtendedInvite>;
482
+ createInvite(channelId: Snowflake, body: RESTPostAPIChannelInviteJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIExtendedInvite>;
483
483
  /**
484
484
  * Fetches the invites of a channel
485
485
  *
@@ -487,7 +487,7 @@ declare class ChannelsAPI {
487
487
  * @param channelId - The id of the channel to fetch invites from
488
488
  * @param options - The options for fetching the invites
489
489
  */
490
- getInvites(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelInvitesResult>;
490
+ getInvites(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelInvitesResult>;
491
491
  /**
492
492
  * Creates a new thread
493
493
  *
@@ -498,7 +498,7 @@ declare class ChannelsAPI {
498
498
  * @param messageId - The id of the message to start the thread from
499
499
  * @param options - The options for starting the thread
500
500
  */
501
- createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
501
+ createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
502
502
  /**
503
503
  * Creates a new forum post
504
504
  *
@@ -507,7 +507,7 @@ declare class ChannelsAPI {
507
507
  * @param body - The data for starting the thread
508
508
  * @param options - The options for starting the thread
509
509
  */
510
- createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { signal }?: Pick<RequestData, 'signal'>): Promise<APIThreadChannel>;
510
+ createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<APIThreadChannel>;
511
511
  /**
512
512
  * Fetches the archived threads of a channel
513
513
  *
@@ -518,7 +518,7 @@ declare class ChannelsAPI {
518
518
  * @param query - The options for fetching archived threads
519
519
  * @param options - The options for fetching archived threads
520
520
  */
521
- getArchivedThreads(channelId: Snowflake, archivedStatus: 'private' | 'public', query?: RESTGetAPIChannelThreadsArchivedQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
521
+ getArchivedThreads(channelId: Snowflake, archivedStatus: 'private' | 'public', query?: RESTGetAPIChannelThreadsArchivedQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
522
522
  /**
523
523
  * Fetches the private joined archived threads of a channel
524
524
  *
@@ -527,7 +527,7 @@ declare class ChannelsAPI {
527
527
  * @param query - The options for fetching joined archived threads
528
528
  * @param options - The options for fetching joined archived threads
529
529
  */
530
- getJoinedPrivateArchivedThreads(channelId: Snowflake, query?: RESTGetAPIChannelThreadsArchivedQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
530
+ getJoinedPrivateArchivedThreads(channelId: Snowflake, query?: RESTGetAPIChannelThreadsArchivedQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
531
531
  /**
532
532
  * Creates a new webhook
533
533
  *
@@ -536,14 +536,15 @@ declare class ChannelsAPI {
536
536
  * @param body - The data for creating the webhook
537
537
  * @param options - The options for creating the webhook
538
538
  */
539
- createWebhook(channelId: Snowflake, body: RESTPostAPIChannelWebhookJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIWebhook>;
539
+ createWebhook(channelId: Snowflake, body: RESTPostAPIChannelWebhookJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIWebhook>;
540
540
  /**
541
541
  * Fetches the webhooks of a channel
542
542
  *
543
543
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-channel-webhooks}
544
544
  * @param channelId - The id of the channel
545
+ * @param options - The options for fetching the webhooks
545
546
  */
546
- getWebhooks(channelId: Snowflake): Promise<RESTGetAPIChannelWebhooksResult>;
547
+ getWebhooks(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelWebhooksResult>;
547
548
  /**
548
549
  * Edits the permission overwrite for a user or role in a channel
549
550
  *
@@ -553,7 +554,7 @@ declare class ChannelsAPI {
553
554
  * @param body - The data for editing the permission overwrite
554
555
  * @param options - The options for editing the permission overwrite
555
556
  */
556
- editPermissionOverwrite(channelId: Snowflake, overwriteId: Snowflake, body: RESTPutAPIChannelPermissionJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
557
+ editPermissionOverwrite(channelId: Snowflake, overwriteId: Snowflake, body: RESTPutAPIChannelPermissionJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
557
558
  /**
558
559
  * Deletes the permission overwrite for a user or role in a channel
559
560
  *
@@ -562,7 +563,7 @@ declare class ChannelsAPI {
562
563
  * @param overwriteId - The id of the user or role to delete the permission overwrite for
563
564
  * @param options - The options for deleting the permission overwrite
564
565
  */
565
- deletePermissionOverwrite(channelId: Snowflake, overwriteId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
566
+ deletePermissionOverwrite(channelId: Snowflake, overwriteId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
566
567
  /**
567
568
  * Sends a soundboard sound in a channel
568
569
  *
@@ -571,7 +572,7 @@ declare class ChannelsAPI {
571
572
  * @param body - The data for sending the soundboard sound
572
573
  * @param options - The options for sending the soundboard sound
573
574
  */
574
- sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
575
+ sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
575
576
  }
576
577
 
577
578
  interface CreateStickerOptions extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
@@ -588,7 +589,7 @@ declare class GuildsAPI {
588
589
  * @param query - The query options for fetching the guild
589
590
  * @param options - The options for fetching the guild
590
591
  */
591
- get(guildId: Snowflake, query?: RESTGetAPIGuildQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuild>;
592
+ get(guildId: Snowflake, query?: RESTGetAPIGuildQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuild>;
592
593
  /**
593
594
  * Fetches a guild preview
594
595
  *
@@ -596,7 +597,7 @@ declare class GuildsAPI {
596
597
  * @param guildId - The id of the guild to fetch the preview from
597
598
  * @param options - The options for fetching the guild preview
598
599
  */
599
- getPreview(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildPreview>;
600
+ getPreview(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildPreview>;
600
601
  /**
601
602
  * Creates a guild
602
603
  *
@@ -604,7 +605,7 @@ declare class GuildsAPI {
604
605
  * @param body - The guild to create
605
606
  * @param options - The options for creating the guild
606
607
  */
607
- create(body: RESTPostAPIGuildsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuild>;
608
+ create(body: RESTPostAPIGuildsJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuild>;
608
609
  /**
609
610
  * Edits a guild
610
611
  *
@@ -613,7 +614,7 @@ declare class GuildsAPI {
613
614
  * @param body - The new guild data
614
615
  * @param options - The options for editing the guild
615
616
  */
616
- edit(guildId: Snowflake, body: RESTPatchAPIGuildJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuild>;
617
+ edit(guildId: Snowflake, body: RESTPatchAPIGuildJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuild>;
617
618
  /**
618
619
  * Deletes a guild
619
620
  *
@@ -621,7 +622,7 @@ declare class GuildsAPI {
621
622
  * @param guildId - The id of the guild to delete
622
623
  * @param options - The options for deleting this guild
623
624
  */
624
- delete(guildId: Snowflake, { signal, reason }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
625
+ delete(guildId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
625
626
  /**
626
627
  * Adds user to the guild
627
628
  *
@@ -631,16 +632,16 @@ declare class GuildsAPI {
631
632
  * @param body - The data for adding users to the guild
632
633
  * @param options - The options for adding users to the guild
633
634
  */
634
- addMember(guildId: Snowflake, userId: Snowflake, body: RESTPutAPIGuildMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPutAPIGuildMemberResult>;
635
+ addMember(guildId: Snowflake, userId: Snowflake, body: RESTPutAPIGuildMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPutAPIGuildMemberResult>;
635
636
  /**
636
- * Fetches all the members of a guild
637
+ * Fetches members of a guild.
637
638
  *
638
639
  * @see {@link https://discord.com/developers/docs/resources/guild#list-guild-members}
639
640
  * @param guildId - The id of the guild
640
641
  * @param query - The query for fetching the guild members
641
642
  * @param options - The options for fetching the guild members
642
643
  */
643
- getMembers(guildId: Snowflake, query?: RESTGetAPIGuildMembersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildMembersResult>;
644
+ getMembers(guildId: Snowflake, query?: RESTGetAPIGuildMembersQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildMembersResult>;
644
645
  /**
645
646
  * Fetches a guild's channels
646
647
  *
@@ -648,7 +649,7 @@ declare class GuildsAPI {
648
649
  * @param guildId - The id of the guild to fetch the channels from
649
650
  * @param options - The options for fetching the guild channels
650
651
  */
651
- getChannels(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildChannelsResult>;
652
+ getChannels(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildChannelsResult>;
652
653
  /**
653
654
  * Creates a guild channel
654
655
  *
@@ -657,7 +658,7 @@ declare class GuildsAPI {
657
658
  * @param body - The data to create the new channel
658
659
  * @param options - The options for creating the guild channel
659
660
  */
660
- createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
661
+ createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
661
662
  /**
662
663
  * Edits a guild channel's positions
663
664
  *
@@ -666,7 +667,7 @@ declare class GuildsAPI {
666
667
  * @param body - The data to edit the channel positions with
667
668
  * @param options - The options for editing the guild channel positions
668
669
  */
669
- setChannelPositions(guildId: Snowflake, body: RESTPatchAPIGuildChannelPositionsJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
670
+ setChannelPositions(guildId: Snowflake, body: RESTPatchAPIGuildChannelPositionsJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
670
671
  /**
671
672
  * Fetches the active threads in a guild
672
673
  *
@@ -674,7 +675,7 @@ declare class GuildsAPI {
674
675
  * @param guildId - The id of the guild to fetch the active threads from
675
676
  * @param options - The options for fetching the active threads
676
677
  */
677
- getActiveThreads(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIThreadList>;
678
+ getActiveThreads(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIThreadList>;
678
679
  /**
679
680
  * Fetches a guild member ban
680
681
  *
@@ -683,7 +684,7 @@ declare class GuildsAPI {
683
684
  * @param userId - The id of the user to fetch the ban
684
685
  * @param options - The options for fetching the ban
685
686
  */
686
- getMemberBan(guildId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIBan>;
687
+ getMemberBan(guildId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIBan>;
687
688
  /**
688
689
  * Fetches guild member bans
689
690
  *
@@ -692,7 +693,7 @@ declare class GuildsAPI {
692
693
  * @param query - The query options for fetching the bans
693
694
  * @param options - The options for fetching the bans
694
695
  */
695
- getMemberBans(guildId: Snowflake, query?: RESTGetAPIGuildBansQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildBansResult>;
696
+ getMemberBans(guildId: Snowflake, query?: RESTGetAPIGuildBansQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildBansResult>;
696
697
  /**
697
698
  * Bans a user from a guild
698
699
  *
@@ -702,7 +703,7 @@ declare class GuildsAPI {
702
703
  * @param body - The payload for banning the user
703
704
  * @param options - The options for banning the user
704
705
  */
705
- banUser(guildId: Snowflake, userId: Snowflake, body?: RESTPutAPIGuildBanJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
706
+ banUser(guildId: Snowflake, userId: Snowflake, body?: RESTPutAPIGuildBanJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
706
707
  /**
707
708
  * Unbans a user from a guild
708
709
  *
@@ -711,7 +712,7 @@ declare class GuildsAPI {
711
712
  * @param userId - The id of the user to unban
712
713
  * @param options - The options for unbanning the user
713
714
  */
714
- unbanUser(guildId: Snowflake, userId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
715
+ unbanUser(guildId: Snowflake, userId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
715
716
  /**
716
717
  * Bulk ban users from a guild
717
718
  *
@@ -720,7 +721,7 @@ declare class GuildsAPI {
720
721
  * @param body - The data for bulk banning users
721
722
  * @param options - The options for bulk banning users
722
723
  */
723
- bulkBanUsers(guildId: Snowflake, body: RESTPostAPIGuildBulkBanJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<RESTPostAPIGuildBulkBanResult>;
724
+ bulkBanUsers(guildId: Snowflake, body: RESTPostAPIGuildBulkBanJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<RESTPostAPIGuildBulkBanResult>;
724
725
  /**
725
726
  * Gets all the roles in a guild
726
727
  *
@@ -728,7 +729,7 @@ declare class GuildsAPI {
728
729
  * @param guildId - The id of the guild to fetch the roles from
729
730
  * @param options - The options for fetching the guild roles
730
731
  */
731
- getRoles(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildRolesResult>;
732
+ getRoles(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildRolesResult>;
732
733
  /**
733
734
  * Get a role in a guild
734
735
  *
@@ -737,7 +738,7 @@ declare class GuildsAPI {
737
738
  * @param roleId - The id of the role to fetch
738
739
  * @param options - The options for fetching the guild role
739
740
  */
740
- getRole(guildId: Snowflake, roleId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIRole>;
741
+ getRole(guildId: Snowflake, roleId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIRole>;
741
742
  /**
742
743
  * Creates a guild role
743
744
  *
@@ -746,7 +747,7 @@ declare class GuildsAPI {
746
747
  * @param body - The data to create the role with
747
748
  * @param options - The options for creating the guild role
748
749
  */
749
- createRole(guildId: Snowflake, body: RESTPostAPIGuildRoleJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIRole>;
750
+ createRole(guildId: Snowflake, body: RESTPostAPIGuildRoleJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIRole>;
750
751
  /**
751
752
  * Sets role positions in a guild
752
753
  *
@@ -755,7 +756,7 @@ declare class GuildsAPI {
755
756
  * @param body - The data for setting a role position
756
757
  * @param options - The options for setting role positions
757
758
  */
758
- setRolePositions(guildId: Snowflake, body: RESTPatchAPIGuildRolePositionsJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<RESTPatchAPIGuildRolePositionsResult>;
759
+ setRolePositions(guildId: Snowflake, body: RESTPatchAPIGuildRolePositionsJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<RESTPatchAPIGuildRolePositionsResult>;
759
760
  /**
760
761
  * Edits a guild role
761
762
  *
@@ -765,7 +766,7 @@ declare class GuildsAPI {
765
766
  * @param body - data for editing the role
766
767
  * @param options - The options for editing the guild role
767
768
  */
768
- editRole(guildId: Snowflake, roleId: Snowflake, body: RESTPatchAPIGuildRoleJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIRole>;
769
+ editRole(guildId: Snowflake, roleId: Snowflake, body: RESTPatchAPIGuildRoleJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIRole>;
769
770
  /**
770
771
  * Deletes a guild role
771
772
  *
@@ -774,7 +775,7 @@ declare class GuildsAPI {
774
775
  * @param roleId - The id of the role to delete
775
776
  * @param options - The options for deleting the guild role
776
777
  */
777
- deleteRole(guildId: Snowflake, roleId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
778
+ deleteRole(guildId: Snowflake, roleId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
778
779
  /**
779
780
  * Edits the multi-factor-authentication (MFA) level of a guild
780
781
  *
@@ -783,7 +784,7 @@ declare class GuildsAPI {
783
784
  * @param level - The new MFA level
784
785
  * @param options - The options for editing the MFA level
785
786
  */
786
- editMFALevel(guildId: Snowflake, level: GuildMFALevel, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.RESTPostAPIGuildsMFAJSONBody>;
787
+ editMFALevel(guildId: Snowflake, level: GuildMFALevel, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.RESTPostAPIGuildsMFAJSONBody>;
787
788
  /**
788
789
  * Fetch the number of members that can be pruned from a guild
789
790
  *
@@ -792,7 +793,7 @@ declare class GuildsAPI {
792
793
  * @param query - The query options for fetching the number of pruned members
793
794
  * @param options - The options for fetching the number of pruned members
794
795
  */
795
- getPruneCount(guildId: Snowflake, query?: RESTGetAPIGuildPruneCountQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildPruneCountResult>;
796
+ getPruneCount(guildId: Snowflake, query?: RESTGetAPIGuildPruneCountQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildPruneCountResult>;
796
797
  /**
797
798
  * Prunes members in a guild
798
799
  *
@@ -801,7 +802,7 @@ declare class GuildsAPI {
801
802
  * @param body - The options for pruning members
802
803
  * @param options - The options for initiating the prune
803
804
  */
804
- beginPrune(guildId: Snowflake, body?: RESTPostAPIGuildPruneJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<RESTPostAPIGuildPruneResult>;
805
+ beginPrune(guildId: Snowflake, body?: RESTPostAPIGuildPruneJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<RESTPostAPIGuildPruneResult>;
805
806
  /**
806
807
  * Fetches voice regions for a guild
807
808
  *
@@ -809,7 +810,7 @@ declare class GuildsAPI {
809
810
  * @param guildId - The id of the guild to fetch the voice regions from
810
811
  * @param options - The options for fetching the voice regions
811
812
  */
812
- getVoiceRegions(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildVoiceRegionsResult>;
813
+ getVoiceRegions(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildVoiceRegionsResult>;
813
814
  /**
814
815
  * Fetches the invites for a guild
815
816
  *
@@ -817,7 +818,7 @@ declare class GuildsAPI {
817
818
  * @param guildId - The id of the guild to fetch the invites from
818
819
  * @param options - The options for fetching the invites
819
820
  */
820
- getInvites(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildInvitesResult>;
821
+ getInvites(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildInvitesResult>;
821
822
  /**
822
823
  * Fetches the integrations for a guild
823
824
  *
@@ -825,7 +826,7 @@ declare class GuildsAPI {
825
826
  * @param guildId - The id of the guild to fetch the integrations from
826
827
  * @param options - The options for fetching the integrations
827
828
  */
828
- getIntegrations(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildIntegrationsResult>;
829
+ getIntegrations(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildIntegrationsResult>;
829
830
  /**
830
831
  * Deletes an integration from a guild
831
832
  *
@@ -834,7 +835,7 @@ declare class GuildsAPI {
834
835
  * @param integrationId - The id of the integration to delete
835
836
  * @param options - The options for deleting the integration
836
837
  */
837
- deleteIntegration(guildId: Snowflake, integrationId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
838
+ deleteIntegration(guildId: Snowflake, integrationId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
838
839
  /**
839
840
  * Fetches the widget settings for a guild
840
841
  *
@@ -842,7 +843,7 @@ declare class GuildsAPI {
842
843
  * @param guildId - The id of the guild to fetch the widget settings from
843
844
  * @param options - The options for fetching the widget settings
844
845
  */
845
- getWidgetSettings(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildWidgetSettings>;
846
+ getWidgetSettings(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildWidgetSettings>;
846
847
  /**
847
848
  * Edits the widget settings for a guild
848
849
  *
@@ -851,7 +852,7 @@ declare class GuildsAPI {
851
852
  * @param body - The new widget settings data
852
853
  * @param options - The options for editing the widget settings
853
854
  */
854
- editWidgetSettings(guildId: Snowflake, body: RESTPatchAPIGuildWidgetSettingsJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildWidgetSettings>;
855
+ editWidgetSettings(guildId: Snowflake, body: RESTPatchAPIGuildWidgetSettingsJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildWidgetSettings>;
855
856
  /**
856
857
  * Fetches the widget for a guild
857
858
  *
@@ -859,7 +860,7 @@ declare class GuildsAPI {
859
860
  * @param guildId - The id of the guild to fetch the widget from
860
861
  * @param options - The options for fetching the widget
861
862
  */
862
- getWidget(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildWidget>;
863
+ getWidget(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildWidget>;
863
864
  /**
864
865
  * Fetches the vanity url for a guild
865
866
  *
@@ -867,7 +868,7 @@ declare class GuildsAPI {
867
868
  * @param guildId - The id of the guild to fetch the vanity url from
868
869
  * @param options - The options for fetching the vanity url
869
870
  */
870
- getVanityURL(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildVanityUrlResult>;
871
+ getVanityURL(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildVanityUrlResult>;
871
872
  /**
872
873
  * Fetches the widget image for a guild
873
874
  *
@@ -876,7 +877,7 @@ declare class GuildsAPI {
876
877
  * @param style - The style of the widget image
877
878
  * @param options - The options for fetching the widget image
878
879
  */
879
- getWidgetImage(guildId: Snowflake, style?: GuildWidgetStyle, { signal }?: Pick<RequestData, 'signal'>): Promise<ArrayBuffer>;
880
+ getWidgetImage(guildId: Snowflake, style?: GuildWidgetStyle, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<ArrayBuffer>;
880
881
  /**
881
882
  * Fetches the welcome screen for a guild
882
883
  *
@@ -884,7 +885,7 @@ declare class GuildsAPI {
884
885
  * @param guildId - The id of the guild to fetch the welcome screen from
885
886
  * @param options - The options for fetching the welcome screen
886
887
  */
887
- getWelcomeScreen(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildWelcomeScreen>;
888
+ getWelcomeScreen(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildWelcomeScreen>;
888
889
  /**
889
890
  * Edits the welcome screen for a guild
890
891
  *
@@ -893,7 +894,7 @@ declare class GuildsAPI {
893
894
  * @param body - The new welcome screen data
894
895
  * @param options - The options for editing the welcome screen
895
896
  */
896
- editWelcomeScreen(guildId: Snowflake, body?: RESTPatchAPIGuildWelcomeScreenJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildWelcomeScreen>;
897
+ editWelcomeScreen(guildId: Snowflake, body?: RESTPatchAPIGuildWelcomeScreenJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildWelcomeScreen>;
897
898
  /**
898
899
  * Fetches all emojis for a guild
899
900
  *
@@ -901,7 +902,7 @@ declare class GuildsAPI {
901
902
  * @param guildId - The id of the guild to fetch the emojis from
902
903
  * @param options - The options for fetching the emojis
903
904
  */
904
- getEmojis(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildEmojisResult>;
905
+ getEmojis(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildEmojisResult>;
905
906
  /**
906
907
  * Fetches an emoji for a guild
907
908
  *
@@ -910,7 +911,7 @@ declare class GuildsAPI {
910
911
  * @param emojiId - The id of the emoji to fetch
911
912
  * @param options - The options for fetching the emoji
912
913
  */
913
- getEmoji(guildId: Snowflake, emojiId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
914
+ getEmoji(guildId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
914
915
  /**
915
916
  * Creates a new emoji for a guild
916
917
  *
@@ -919,7 +920,7 @@ declare class GuildsAPI {
919
920
  * @param body - The data for creating the emoji
920
921
  * @param options - The options for creating the emoji
921
922
  */
922
- createEmoji(guildId: Snowflake, body: RESTPostAPIGuildEmojiJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
923
+ createEmoji(guildId: Snowflake, body: RESTPostAPIGuildEmojiJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
923
924
  /**
924
925
  * Edits an emoji for a guild
925
926
  *
@@ -929,7 +930,7 @@ declare class GuildsAPI {
929
930
  * @param body - The data for editing the emoji
930
931
  * @param options - The options for editing the emoji
931
932
  */
932
- editEmoji(guildId: Snowflake, emojiId: Snowflake, body: RESTPatchAPIGuildEmojiJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
933
+ editEmoji(guildId: Snowflake, emojiId: Snowflake, body: RESTPatchAPIGuildEmojiJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIEmoji>;
933
934
  /**
934
935
  * Deletes an emoji for a guild
935
936
  *
@@ -938,7 +939,7 @@ declare class GuildsAPI {
938
939
  * @param emojiId - The id of the emoji to delete
939
940
  * @param options - The options for deleting the emoji
940
941
  */
941
- deleteEmoji(guildId: Snowflake, emojiId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
942
+ deleteEmoji(guildId: Snowflake, emojiId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
942
943
  /**
943
944
  * Fetches all scheduled events for a guild
944
945
  *
@@ -947,7 +948,7 @@ declare class GuildsAPI {
947
948
  * @param query - The query options for fetching the scheduled events
948
949
  * @param options - The options for fetching the scheduled events
949
950
  */
950
- getScheduledEvents(guildId: Snowflake, query?: RESTGetAPIGuildScheduledEventsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildScheduledEventsResult>;
951
+ getScheduledEvents(guildId: Snowflake, query?: RESTGetAPIGuildScheduledEventsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildScheduledEventsResult>;
951
952
  /**
952
953
  * Creates a new scheduled event for a guild
953
954
  *
@@ -956,7 +957,7 @@ declare class GuildsAPI {
956
957
  * @param body - The data to create the event with
957
958
  * @param options - The options for creating the scheduled event
958
959
  */
959
- createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
960
+ createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
960
961
  /**
961
962
  * Fetches a scheduled event for a guild
962
963
  *
@@ -966,7 +967,7 @@ declare class GuildsAPI {
966
967
  * @param query - The options for fetching the scheduled event
967
968
  * @param options - The options for fetching the scheduled event
968
969
  */
969
- getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
970
+ getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
970
971
  /**
971
972
  * Edits a scheduled event for a guild
972
973
  *
@@ -976,7 +977,7 @@ declare class GuildsAPI {
976
977
  * @param body - The new event data
977
978
  * @param options - The options for editing the scheduled event
978
979
  */
979
- editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
980
+ editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
980
981
  /**
981
982
  * Deletes a scheduled event for a guild
982
983
  *
@@ -985,7 +986,7 @@ declare class GuildsAPI {
985
986
  * @param eventId - The id of the scheduled event to delete
986
987
  * @param options - The options for deleting the scheduled event
987
988
  */
988
- deleteScheduledEvent(guildId: Snowflake, eventId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
989
+ deleteScheduledEvent(guildId: Snowflake, eventId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
989
990
  /**
990
991
  * Gets all users that are interested in a scheduled event
991
992
  *
@@ -995,7 +996,7 @@ declare class GuildsAPI {
995
996
  * @param query - The options for fetching the scheduled event users
996
997
  * @param options - The options for fetching the scheduled event users
997
998
  */
998
- getScheduledEventUsers(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventUsersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildScheduledEventUsersResult>;
999
+ getScheduledEventUsers(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventUsersQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildScheduledEventUsersResult>;
999
1000
  /**
1000
1001
  * Fetches all the templates for a guild
1001
1002
  *
@@ -1003,7 +1004,7 @@ declare class GuildsAPI {
1003
1004
  * @param guildId - The id of the guild to fetch the templates from
1004
1005
  * @param options - The options for fetching the templates
1005
1006
  */
1006
- getTemplates(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildTemplatesResult>;
1007
+ getTemplates(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildTemplatesResult>;
1007
1008
  /**
1008
1009
  * Syncs a template for a guild
1009
1010
  *
@@ -1012,7 +1013,7 @@ declare class GuildsAPI {
1012
1013
  * @param templateCode - The code of the template to sync
1013
1014
  * @param options - The options for syncing the template
1014
1015
  */
1015
- syncTemplate(guildId: Snowflake, templateCode: string, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1016
+ syncTemplate(guildId: Snowflake, templateCode: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1016
1017
  /**
1017
1018
  * Edits a template for a guild
1018
1019
  *
@@ -1022,7 +1023,7 @@ declare class GuildsAPI {
1022
1023
  * @param body - The data for editing the template
1023
1024
  * @param options - The options for editing the template
1024
1025
  */
1025
- editTemplate(guildId: Snowflake, templateCode: string, body: RESTPatchAPIGuildTemplateJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1026
+ editTemplate(guildId: Snowflake, templateCode: string, body: RESTPatchAPIGuildTemplateJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1026
1027
  /**
1027
1028
  * Deletes a template for a guild
1028
1029
  *
@@ -1031,7 +1032,7 @@ declare class GuildsAPI {
1031
1032
  * @param templateCode - The code of the template to delete
1032
1033
  * @param options - The options for deleting the template
1033
1034
  */
1034
- deleteTemplate(guildId: Snowflake, templateCode: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1035
+ deleteTemplate(guildId: Snowflake, templateCode: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1035
1036
  /**
1036
1037
  * Fetches all the stickers for a guild
1037
1038
  *
@@ -1039,7 +1040,7 @@ declare class GuildsAPI {
1039
1040
  * @param guildId - The id of the guild to fetch the stickers from
1040
1041
  * @param options - The options for fetching the stickers
1041
1042
  */
1042
- getStickers(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildStickersResult>;
1043
+ getStickers(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildStickersResult>;
1043
1044
  /**
1044
1045
  * Fetches a sticker for a guild
1045
1046
  *
@@ -1048,7 +1049,7 @@ declare class GuildsAPI {
1048
1049
  * @param stickerId - The id of the sticker to fetch
1049
1050
  * @param options - The options for fetching the sticker
1050
1051
  */
1051
- getSticker(guildId: Snowflake, stickerId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISticker>;
1052
+ getSticker(guildId: Snowflake, stickerId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1052
1053
  /**
1053
1054
  * Creates a sticker for a guild
1054
1055
  *
@@ -1057,7 +1058,7 @@ declare class GuildsAPI {
1057
1058
  * @param body - The data for creating the sticker
1058
1059
  * @param options - The options for creating the sticker
1059
1060
  */
1060
- createSticker(guildId: Snowflake, { file, ...body }: CreateStickerOptions, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1061
+ createSticker(guildId: Snowflake, { file, ...body }: CreateStickerOptions, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1061
1062
  /**
1062
1063
  * Edits a sticker for a guild
1063
1064
  *
@@ -1067,7 +1068,7 @@ declare class GuildsAPI {
1067
1068
  * @param body - The data for editing the sticker
1068
1069
  * @param options - The options for editing the sticker
1069
1070
  */
1070
- editSticker(guildId: Snowflake, stickerId: Snowflake, body: RESTPatchAPIGuildStickerJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1071
+ editSticker(guildId: Snowflake, stickerId: Snowflake, body: RESTPatchAPIGuildStickerJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1071
1072
  /**
1072
1073
  * Deletes a sticker for a guild
1073
1074
  *
@@ -1076,7 +1077,7 @@ declare class GuildsAPI {
1076
1077
  * @param stickerId - The id of the sticker to delete
1077
1078
  * @param options - The options for deleting the sticker
1078
1079
  */
1079
- deleteSticker(guildId: Snowflake, stickerId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1080
+ deleteSticker(guildId: Snowflake, stickerId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1080
1081
  /**
1081
1082
  * Fetches the audit logs for a guild
1082
1083
  *
@@ -1085,7 +1086,7 @@ declare class GuildsAPI {
1085
1086
  * @param query - The query options for fetching the audit logs
1086
1087
  * @param options - The options for fetching the audit logs
1087
1088
  */
1088
- getAuditLogs(guildId: Snowflake, query?: RESTGetAPIAuditLogQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIAuditLog>;
1089
+ getAuditLogs(guildId: Snowflake, query?: RESTGetAPIAuditLogQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIAuditLog>;
1089
1090
  /**
1090
1091
  * Fetches all auto moderation rules for a guild
1091
1092
  *
@@ -1093,7 +1094,7 @@ declare class GuildsAPI {
1093
1094
  * @param guildId - The id of the guild to fetch the auto moderation rules from
1094
1095
  * @param options - The options for fetching the auto moderation rules
1095
1096
  */
1096
- getAutoModerationRules(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIAutoModerationRulesResult>;
1097
+ getAutoModerationRules(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIAutoModerationRulesResult>;
1097
1098
  /**
1098
1099
  * Fetches an auto moderation rule for a guild
1099
1100
  *
@@ -1102,7 +1103,7 @@ declare class GuildsAPI {
1102
1103
  * @param ruleId - The id of the auto moderation rule to fetch
1103
1104
  * @param options - The options for fetching the auto moderation rule
1104
1105
  */
1105
- getAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1106
+ getAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1106
1107
  /**
1107
1108
  * Creates a new auto moderation rule for a guild
1108
1109
  *
@@ -1111,7 +1112,7 @@ declare class GuildsAPI {
1111
1112
  * @param body - The data for creating the auto moderation rule
1112
1113
  * @param options - The options for creating the auto moderation rule
1113
1114
  */
1114
- createAutoModerationRule(guildId: Snowflake, body: RESTPostAPIAutoModerationRuleJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1115
+ createAutoModerationRule(guildId: Snowflake, body: RESTPostAPIAutoModerationRuleJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1115
1116
  /**
1116
1117
  * Edits an auto moderation rule for a guild
1117
1118
  *
@@ -1121,7 +1122,7 @@ declare class GuildsAPI {
1121
1122
  * @param body - The data for editing the auto moderation rule
1122
1123
  * @param options - The options for editing the auto moderation rule
1123
1124
  */
1124
- editAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, body: RESTPatchAPIAutoModerationRuleJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1125
+ editAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, body: RESTPatchAPIAutoModerationRuleJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIAutoModerationRule>;
1125
1126
  /**
1126
1127
  * Deletes an auto moderation rule for a guild
1127
1128
  *
@@ -1130,7 +1131,7 @@ declare class GuildsAPI {
1130
1131
  * @param ruleId - The id of the auto moderation rule to delete
1131
1132
  * @param options - The options for deleting the auto moderation rule
1132
1133
  */
1133
- deleteAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1134
+ deleteAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1134
1135
  /**
1135
1136
  * Fetches a guild member
1136
1137
  *
@@ -1139,7 +1140,7 @@ declare class GuildsAPI {
1139
1140
  * @param userId - The id of the user
1140
1141
  * @param options - The options for fetching the guild member
1141
1142
  */
1142
- getMember(guildId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
1143
+ getMember(guildId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
1143
1144
  /**
1144
1145
  * Searches for guild members
1145
1146
  *
@@ -1148,7 +1149,7 @@ declare class GuildsAPI {
1148
1149
  * @param query - The query to search for
1149
1150
  * @param options - The options for searching for guild members
1150
1151
  */
1151
- searchForMembers(guildId: Snowflake, query: RESTGetAPIGuildMembersSearchQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildMembersSearchResult>;
1152
+ searchForMembers(guildId: Snowflake, query: RESTGetAPIGuildMembersSearchQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildMembersSearchResult>;
1152
1153
  /**
1153
1154
  * Edits a guild member
1154
1155
  *
@@ -1158,7 +1159,7 @@ declare class GuildsAPI {
1158
1159
  * @param body - The data for editing the guild member
1159
1160
  * @param options - The options for editing the guild member
1160
1161
  */
1161
- editMember(guildId: Snowflake, userId: Snowflake, body?: RESTPatchAPIGuildMemberJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
1162
+ editMember(guildId: Snowflake, userId: Snowflake, body?: RESTPatchAPIGuildMemberJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
1162
1163
  /**
1163
1164
  * Removes a member from a guild
1164
1165
  *
@@ -1167,7 +1168,7 @@ declare class GuildsAPI {
1167
1168
  * @param userId - The id of the user
1168
1169
  * @param options - The options for removing the guild member
1169
1170
  */
1170
- removeMember(guildId: Snowflake, userId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<unknown>;
1171
+ removeMember(guildId: Snowflake, userId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<unknown>;
1171
1172
  /**
1172
1173
  * Adds a role to a guild member
1173
1174
  *
@@ -1177,7 +1178,7 @@ declare class GuildsAPI {
1177
1178
  * @param roleId - The id of the role
1178
1179
  * @param options - The options for adding a role to a guild member
1179
1180
  */
1180
- addRoleToMember(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1181
+ addRoleToMember(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1181
1182
  /**
1182
1183
  * Removes a role from a guild member
1183
1184
  *
@@ -1187,7 +1188,7 @@ declare class GuildsAPI {
1187
1188
  * @param roleId - The id of the role
1188
1189
  * @param options - The options for removing a role from a guild member
1189
1190
  */
1190
- removeRoleFromMember(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1191
+ removeRoleFromMember(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1191
1192
  /**
1192
1193
  * Fetches a guild template
1193
1194
  *
@@ -1195,7 +1196,7 @@ declare class GuildsAPI {
1195
1196
  * @param templateCode - The code of the template
1196
1197
  * @param options - The options for fetching the guild template
1197
1198
  */
1198
- getTemplate(templateCode: string, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1199
+ getTemplate(templateCode: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1199
1200
  /**
1200
1201
  * Creates a new template
1201
1202
  *
@@ -1204,14 +1205,15 @@ declare class GuildsAPI {
1204
1205
  * @param body - The data for creating the template
1205
1206
  * @param options - The options for creating the template
1206
1207
  */
1207
- createTemplate(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1208
+ createTemplate(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1208
1209
  /**
1209
1210
  * Fetches webhooks for a guild
1210
1211
  *
1211
1212
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-guild-webhooks}
1212
1213
  * @param id - The id of the guild
1214
+ * @param options - The options for fetching the webhooks
1213
1215
  */
1214
- getWebhooks(id: Snowflake): Promise<RESTGetAPIGuildWebhooksResult>;
1216
+ getWebhooks(id: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildWebhooksResult>;
1215
1217
  /**
1216
1218
  * Fetches a guild onboarding
1217
1219
  *
@@ -1219,7 +1221,7 @@ declare class GuildsAPI {
1219
1221
  * @param guildId - The id of the guild
1220
1222
  * @param options - The options for fetching the guild onboarding
1221
1223
  */
1222
- getOnboarding(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildOnboarding>;
1224
+ getOnboarding(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildOnboarding>;
1223
1225
  /**
1224
1226
  * Edits a guild onboarding
1225
1227
  *
@@ -1228,7 +1230,7 @@ declare class GuildsAPI {
1228
1230
  * @param body - The data for editing the guild onboarding
1229
1231
  * @param options - The options for editing the guild onboarding
1230
1232
  */
1231
- editOnboarding(guildId: Snowflake, body: RESTPutAPIGuildOnboardingJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildOnboarding>;
1233
+ editOnboarding(guildId: Snowflake, body: RESTPutAPIGuildOnboardingJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildOnboarding>;
1232
1234
  /**
1233
1235
  * Fetches all the soundboard sounds for a guild
1234
1236
  *
@@ -1236,7 +1238,7 @@ declare class GuildsAPI {
1236
1238
  * @param guildId - The id of the guild to fetch the soundboard sounds for
1237
1239
  * @param options - The options for fetching the soundboard sounds
1238
1240
  */
1239
- getSoundboardSounds(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildSoundboardSoundsResult>;
1241
+ getSoundboardSounds(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIGuildSoundboardSoundsResult>;
1240
1242
  /**
1241
1243
  * Fetches a soundboard sound for a guild
1242
1244
  *
@@ -1245,7 +1247,7 @@ declare class GuildsAPI {
1245
1247
  * @param soundId - The id of the soundboard sound to fetch
1246
1248
  * @param options - The options for fetching the soundboard sound
1247
1249
  */
1248
- getSoundboardSound(guildId: Snowflake, soundId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1250
+ getSoundboardSound(guildId: Snowflake, soundId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1249
1251
  /**
1250
1252
  * Creates a new soundboard sound for a guild
1251
1253
  *
@@ -1254,7 +1256,7 @@ declare class GuildsAPI {
1254
1256
  * @param body - The data for creating the soundboard sound
1255
1257
  * @param options - The options for creating the soundboard sound
1256
1258
  */
1257
- createSoundboardSound(guildId: Snowflake, body: RESTPostAPIGuildSoundboardSoundJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1259
+ createSoundboardSound(guildId: Snowflake, body: RESTPostAPIGuildSoundboardSoundJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1258
1260
  /**
1259
1261
  * Edits a soundboard sound for a guild
1260
1262
  *
@@ -1264,7 +1266,7 @@ declare class GuildsAPI {
1264
1266
  * @param body - The data for editing the soundboard sound
1265
1267
  * @param options - The options for editing the soundboard sound
1266
1268
  */
1267
- editSoundboardSound(guildId: Snowflake, soundId: Snowflake, body: RESTPatchAPIGuildSoundboardSoundJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1269
+ editSoundboardSound(guildId: Snowflake, soundId: Snowflake, body: RESTPatchAPIGuildSoundboardSoundJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1268
1270
  /**
1269
1271
  * Deletes a soundboard sound for a guild
1270
1272
  *
@@ -1273,7 +1275,7 @@ declare class GuildsAPI {
1273
1275
  * @param soundId - The id of the soundboard sound to delete
1274
1276
  * @param options - The options for deleting the soundboard sound
1275
1277
  */
1276
- deleteSoundboardSound(guildId: Snowflake, soundId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1278
+ deleteSoundboardSound(guildId: Snowflake, soundId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1277
1279
  }
1278
1280
 
1279
1281
  type CreateWebhookMessageOptions = RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
@@ -1668,6 +1670,40 @@ declare class InteractionsAPI {
1668
1670
  * @param options - The options for sending the modal
1669
1671
  */
1670
1672
  createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1673
+ /**
1674
+ * Launches an activity and returns an interaction callback object
1675
+ *
1676
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1677
+ * @param interactionId - The id of the interaction
1678
+ * @param interactionToken - The token of the interaction
1679
+ * @param body - The callback data for launching the activity
1680
+ * @param options - The options for launching the activity
1681
+ */
1682
+ launchActivity(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1683
+ with_response: true;
1684
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1685
+ /**
1686
+ * Launches an activity
1687
+ *
1688
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1689
+ * @param interactionId - The id of the interaction
1690
+ * @param interactionToken - The token of the interaction
1691
+ * @param body - The callback data for launching the activity
1692
+ * @param options - The options for launching the activity
1693
+ */
1694
+ launchActivity(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1695
+ with_response?: false;
1696
+ }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1697
+ /**
1698
+ * Launches an activity
1699
+ *
1700
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1701
+ * @param interactionId - The id of the interaction
1702
+ * @param interactionToken - The token of the interaction
1703
+ * @param body - The callback data for launching the activity
1704
+ * @param options - The options for launching the activity
1705
+ */
1706
+ launchActivity(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1671
1707
  }
1672
1708
 
1673
1709
  declare class InvitesAPI {
@@ -1681,7 +1717,7 @@ declare class InvitesAPI {
1681
1717
  * @param query - The options for fetching the invite
1682
1718
  * @param options - The options for fetching the invite
1683
1719
  */
1684
- get(code: string, query?: RESTGetAPIInviteQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIInvite>;
1720
+ get(code: string, query?: RESTGetAPIInviteQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIInvite>;
1685
1721
  /**
1686
1722
  * Deletes an invite
1687
1723
  *
@@ -1689,7 +1725,7 @@ declare class InvitesAPI {
1689
1725
  * @param code - The invite code
1690
1726
  * @param options - The options for deleting the invite
1691
1727
  */
1692
- delete(code: string, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1728
+ delete(code: string, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1693
1729
  }
1694
1730
 
1695
1731
  declare class MonetizationAPI {
@@ -1702,7 +1738,7 @@ declare class MonetizationAPI {
1702
1738
  * @param applicationId - The application id to fetch SKUs for
1703
1739
  * @param options - The options for fetching the SKUs.
1704
1740
  */
1705
- getSKUs(applicationId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUsResult>;
1741
+ getSKUs(applicationId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPISKUsResult>;
1706
1742
  /**
1707
1743
  * Fetches subscriptions for an SKU.
1708
1744
  *
@@ -1711,7 +1747,7 @@ declare class MonetizationAPI {
1711
1747
  * @param query - The query options for fetching subscriptions
1712
1748
  * @param options - The options for fetching subscriptions
1713
1749
  */
1714
- getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1750
+ getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1715
1751
  /**
1716
1752
  * Fetches a subscription for an SKU.
1717
1753
  *
@@ -1720,7 +1756,7 @@ declare class MonetizationAPI {
1720
1756
  * @param subscriptionId - The subscription id to fetch
1721
1757
  * @param options - The options for fetching the subscription
1722
1758
  */
1723
- getSKUSubscription(skuId: Snowflake, subscriptionId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISubscription>;
1759
+ getSKUSubscription(skuId: Snowflake, subscriptionId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISubscription>;
1724
1760
  /**
1725
1761
  * Fetches the entitlements for an application.
1726
1762
  *
@@ -1729,7 +1765,7 @@ declare class MonetizationAPI {
1729
1765
  * @param query - The query options for fetching entitlements
1730
1766
  * @param options - The options for fetching entitlements
1731
1767
  */
1732
- getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1768
+ getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1733
1769
  /**
1734
1770
  * Fetches an entitlement for an application.
1735
1771
  *
@@ -1738,7 +1774,7 @@ declare class MonetizationAPI {
1738
1774
  * @param entitlementId - The entitlement id to fetch
1739
1775
  * @param options - The options for fetching the entitlement
1740
1776
  */
1741
- getEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIEntitlement>;
1777
+ getEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIEntitlement>;
1742
1778
  /**
1743
1779
  * Creates a test entitlement for an application's SKU.
1744
1780
  *
@@ -1747,7 +1783,7 @@ declare class MonetizationAPI {
1747
1783
  * @param body - The data for creating the entitlement
1748
1784
  * @param options - The options for creating the entitlement
1749
1785
  */
1750
- createTestEntitlement(applicationId: Snowflake, body: RESTPostAPIEntitlementJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<Partial<Omit<discord_api_types_v10.APIEntitlement, "ends_at" | "starts_at">>>;
1786
+ createTestEntitlement(applicationId: Snowflake, body: RESTPostAPIEntitlementJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<Partial<Omit<discord_api_types_v10.APIEntitlement, "ends_at" | "starts_at">>>;
1751
1787
  /**
1752
1788
  * Deletes a test entitlement for an application's SKU.
1753
1789
  *
@@ -1756,7 +1792,7 @@ declare class MonetizationAPI {
1756
1792
  * @param entitlementId - The entitlement id to delete
1757
1793
  * @param options - The options for deleting the entitlement
1758
1794
  */
1759
- deleteTestEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1795
+ deleteTestEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1760
1796
  /**
1761
1797
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
1762
1798
  *
@@ -1765,7 +1801,7 @@ declare class MonetizationAPI {
1765
1801
  * @param entitlementId - The entitlement id to consume
1766
1802
  * @param options - The options for consuming the entitlement
1767
1803
  */
1768
- consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1804
+ consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1769
1805
  }
1770
1806
 
1771
1807
  declare class OAuth2API {
@@ -1810,14 +1846,14 @@ declare class OAuth2API {
1810
1846
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
1811
1847
  * @param options - The options for the current bot application information request
1812
1848
  */
1813
- getCurrentBotApplicationInformation({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIOAuth2CurrentApplicationResult>;
1849
+ getCurrentBotApplicationInformation({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIOAuth2CurrentApplicationResult>;
1814
1850
  /**
1815
1851
  * Fetches the current authorization information
1816
1852
  *
1817
1853
  * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
1818
1854
  * @param options - The options for the current authorization information request
1819
1855
  */
1820
- getCurrentAuthorizationInformation({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIOAuth2CurrentAuthorizationResult>;
1856
+ getCurrentAuthorizationInformation({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIOAuth2CurrentAuthorizationResult>;
1821
1857
  /**
1822
1858
  * Revokes an OAuth2 token
1823
1859
  *
@@ -1843,7 +1879,7 @@ declare class PollAPI {
1843
1879
  * @param query - The query for getting the list of voters
1844
1880
  * @param options - The options for getting the list of voters
1845
1881
  */
1846
- getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1882
+ getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1847
1883
  /**
1848
1884
  * Immediately expires (i.e. ends) a poll
1849
1885
  *
@@ -1852,7 +1888,7 @@ declare class PollAPI {
1852
1888
  * @param messageId - The id of the message containing the poll
1853
1889
  * @param options - The options for expiring the poll
1854
1890
  */
1855
- expirePoll(channelId: Snowflake, messageId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIMessage>;
1891
+ expirePoll(channelId: Snowflake, messageId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIMessage>;
1856
1892
  }
1857
1893
 
1858
1894
  declare class RoleConnectionsAPI {
@@ -1865,7 +1901,7 @@ declare class RoleConnectionsAPI {
1865
1901
  * @param applicationId - The id of the application to get role connection metadata records for
1866
1902
  * @param options - The options for fetching the role connection metadata records
1867
1903
  */
1868
- getMetadataRecords(applicationId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIApplicationRoleConnectionMetadataResult>;
1904
+ getMetadataRecords(applicationId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIApplicationRoleConnectionMetadataResult>;
1869
1905
  /**
1870
1906
  * Updates the role connection metadata records for the application
1871
1907
  *
@@ -1874,7 +1910,7 @@ declare class RoleConnectionsAPI {
1874
1910
  * @param body - The new role connection metadata records
1875
1911
  * @param options - The options for updating the role connection metadata records
1876
1912
  */
1877
- updateMetadataRecords(applicationId: Snowflake, body: RESTPutAPIApplicationRoleConnectionMetadataJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>;
1913
+ updateMetadataRecords(applicationId: Snowflake, body: RESTPutAPIApplicationRoleConnectionMetadataJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>;
1878
1914
  }
1879
1915
 
1880
1916
  declare class SoundboardSoundsAPI {
@@ -1886,7 +1922,7 @@ declare class SoundboardSoundsAPI {
1886
1922
  * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
1887
1923
  * @param options - The options for fetching the soundboard default sounds.
1888
1924
  */
1889
- getSoundboardDefaultSounds({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISoundboardDefaultSoundsResult>;
1925
+ getSoundboardDefaultSounds({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPISoundboardDefaultSoundsResult>;
1890
1926
  }
1891
1927
 
1892
1928
  declare class StageInstancesAPI {
@@ -1899,7 +1935,7 @@ declare class StageInstancesAPI {
1899
1935
  * @param body - The data for creating the new stage instance
1900
1936
  * @param options - The options for creating the new stage instance
1901
1937
  */
1902
- create(body: RESTPostAPIStageInstanceJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1938
+ create(body: RESTPostAPIStageInstanceJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1903
1939
  /**
1904
1940
  * Fetches a stage instance
1905
1941
  *
@@ -1907,7 +1943,7 @@ declare class StageInstancesAPI {
1907
1943
  * @param channelId - The id of the channel
1908
1944
  * @param options - The options for fetching the stage instance
1909
1945
  */
1910
- get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1946
+ get(channelId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1911
1947
  /**
1912
1948
  * Edits a stage instance
1913
1949
  *
@@ -1916,7 +1952,7 @@ declare class StageInstancesAPI {
1916
1952
  * @param body - The new stage instance data
1917
1953
  * @param options - The options for editing the stage instance
1918
1954
  */
1919
- edit(channelId: Snowflake, body: RESTPatchAPIStageInstanceJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1955
+ edit(channelId: Snowflake, body: RESTPatchAPIStageInstanceJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIStageInstance>;
1920
1956
  /**
1921
1957
  * Deletes a stage instance
1922
1958
  *
@@ -1924,7 +1960,7 @@ declare class StageInstancesAPI {
1924
1960
  * @param channelId - The id of the channel
1925
1961
  * @param options - The options for deleting the stage instance
1926
1962
  */
1927
- delete(channelId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1963
+ delete(channelId: Snowflake, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
1928
1964
  }
1929
1965
 
1930
1966
  declare class StickersAPI {
@@ -1937,14 +1973,14 @@ declare class StickersAPI {
1937
1973
  * @param packId - The id of the sticker pack
1938
1974
  * @param options - The options for fetching the sticker pack
1939
1975
  */
1940
- getStickerPack(packId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIStickerPack>;
1976
+ getStickerPack(packId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIStickerPack>;
1941
1977
  /**
1942
1978
  * Fetches all of the sticker packs
1943
1979
  *
1944
1980
  * @see {@link https://discord.com/developers/docs/resources/sticker#list-sticker-packs}
1945
1981
  * @param options - The options for fetching the sticker packs
1946
1982
  */
1947
- getStickers({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetStickerPacksResult>;
1983
+ getStickers({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetStickerPacksResult>;
1948
1984
  /**
1949
1985
  * Fetches a sticker
1950
1986
  *
@@ -1952,7 +1988,7 @@ declare class StickersAPI {
1952
1988
  * @param stickerId - The id of the sticker
1953
1989
  * @param options - The options for fetching the sticker
1954
1990
  */
1955
- get(stickerId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISticker>;
1991
+ get(stickerId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISticker>;
1956
1992
  }
1957
1993
 
1958
1994
  declare class ThreadsAPI {
@@ -1965,7 +2001,7 @@ declare class ThreadsAPI {
1965
2001
  * @param threadId - The id of the thread to join
1966
2002
  * @param options - The options for joining the thread
1967
2003
  */
1968
- join(threadId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
2004
+ join(threadId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1969
2005
  /**
1970
2006
  * Adds a member to a thread
1971
2007
  *
@@ -1974,7 +2010,7 @@ declare class ThreadsAPI {
1974
2010
  * @param userId - The id of the user to add to the thread
1975
2011
  * @param options - The options for adding the member to the thread
1976
2012
  */
1977
- addMember(threadId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
2013
+ addMember(threadId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1978
2014
  /**
1979
2015
  * Removes the current user from a thread
1980
2016
  *
@@ -1982,7 +2018,7 @@ declare class ThreadsAPI {
1982
2018
  * @param threadId - The id of the thread to leave
1983
2019
  * @param options - The options for leaving the thread
1984
2020
  */
1985
- leave(threadId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
2021
+ leave(threadId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1986
2022
  /**
1987
2023
  * Removes a member from a thread
1988
2024
  *
@@ -1991,7 +2027,7 @@ declare class ThreadsAPI {
1991
2027
  * @param userId - The id of the user to remove from the thread
1992
2028
  * @param options - The options for removing the member from the thread
1993
2029
  */
1994
- removeMember(threadId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
2030
+ removeMember(threadId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
1995
2031
  /**
1996
2032
  * Fetches a member of a thread
1997
2033
  *
@@ -2000,7 +2036,7 @@ declare class ThreadsAPI {
2000
2036
  * @param userId - The id of the user
2001
2037
  * @param options - The options for fetching the member
2002
2038
  */
2003
- getMember(threadId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<APIThreadMember>;
2039
+ getMember(threadId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<APIThreadMember>;
2004
2040
  /**
2005
2041
  * Fetches all members of a thread
2006
2042
  *
@@ -2008,7 +2044,7 @@ declare class ThreadsAPI {
2008
2044
  * @param threadId - The id of the thread to fetch the members from
2009
2045
  * @param options - The options for fetching the members
2010
2046
  */
2011
- getAllMembers(threadId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelThreadMembersResult>;
2047
+ getAllMembers(threadId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIChannelThreadMembersResult>;
2012
2048
  }
2013
2049
 
2014
2050
  declare class UsersAPI {
@@ -2021,14 +2057,14 @@ declare class UsersAPI {
2021
2057
  * @param userId - The id of the user to fetch
2022
2058
  * @param options - The options for fetching the user
2023
2059
  */
2024
- get(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIUser>;
2060
+ get(userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIUser>;
2025
2061
  /**
2026
2062
  * Returns the user object of the requester's account
2027
2063
  *
2028
2064
  * @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
2029
2065
  * @param options - The options for fetching the current user
2030
2066
  */
2031
- getCurrent({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIUser>;
2067
+ getCurrent({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIUser>;
2032
2068
  /**
2033
2069
  * Returns a list of partial guild objects the current user is a member of
2034
2070
  *
@@ -2036,7 +2072,7 @@ declare class UsersAPI {
2036
2072
  * @param query - The query options for fetching the current user's guilds
2037
2073
  * @param options - The options for fetching the guilds
2038
2074
  */
2039
- getGuilds(query?: RESTGetAPICurrentUserGuildsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPICurrentUserGuildsResult>;
2075
+ getGuilds(query?: RESTGetAPICurrentUserGuildsQuery, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPICurrentUserGuildsResult>;
2040
2076
  /**
2041
2077
  * Leaves the guild with the given id
2042
2078
  *
@@ -2044,7 +2080,7 @@ declare class UsersAPI {
2044
2080
  * @param guildId - The id of the guild
2045
2081
  * @param options - The options for leaving the guild
2046
2082
  */
2047
- leaveGuild(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
2083
+ leaveGuild(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
2048
2084
  /**
2049
2085
  * Edits the current user
2050
2086
  *
@@ -2052,7 +2088,7 @@ declare class UsersAPI {
2052
2088
  * @param body - The new data for the current user
2053
2089
  * @param options - The options for editing the user
2054
2090
  */
2055
- edit(body: RESTPatchAPICurrentUserJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIUser>;
2091
+ edit(body: RESTPatchAPICurrentUserJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIUser>;
2056
2092
  /**
2057
2093
  * Fetches the guild member for the current user
2058
2094
  *
@@ -2060,7 +2096,7 @@ declare class UsersAPI {
2060
2096
  * @param guildId - The id of the guild
2061
2097
  * @param options - The options for fetching the guild member
2062
2098
  */
2063
- getGuildMember(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
2099
+ getGuildMember(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
2064
2100
  /**
2065
2101
  * Edits the guild member for the current user
2066
2102
  *
@@ -2069,7 +2105,7 @@ declare class UsersAPI {
2069
2105
  * @param body - The new data for the guild member
2070
2106
  * @param options - The options for editing the guild member
2071
2107
  */
2072
- editCurrentGuildMember(guildId: Snowflake, body?: RESTPatchAPIGuildMemberJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
2108
+ editCurrentGuildMember(guildId: Snowflake, body?: RESTPatchAPIGuildMemberJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
2073
2109
  /**
2074
2110
  * Opens a new DM channel with a user
2075
2111
  *
@@ -2077,14 +2113,14 @@ declare class UsersAPI {
2077
2113
  * @param userId - The id of the user to open a DM channel with
2078
2114
  * @param options - The options for opening the DM
2079
2115
  */
2080
- createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
2116
+ createDM(userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIChannel>;
2081
2117
  /**
2082
2118
  * Gets the current user's connections
2083
2119
  *
2084
2120
  * @see {@link https://discord.com/developers/docs/resources/user#get-user-connections}
2085
2121
  * @param options - The options for fetching the user's connections
2086
2122
  */
2087
- getConnections({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPICurrentUserConnectionsResult>;
2123
+ getConnections({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPICurrentUserConnectionsResult>;
2088
2124
  /**
2089
2125
  * Gets the current user's active application role connection
2090
2126
  *
@@ -2092,7 +2128,7 @@ declare class UsersAPI {
2092
2128
  * @param applicationId - The id of the application
2093
2129
  * @param options - The options for fetching the role connections
2094
2130
  */
2095
- getApplicationRoleConnection(applicationId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplicationRoleConnection>;
2131
+ getApplicationRoleConnection(applicationId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplicationRoleConnection>;
2096
2132
  /**
2097
2133
  * Updates the current user's application role connection
2098
2134
  *
@@ -2101,7 +2137,7 @@ declare class UsersAPI {
2101
2137
  * @param body - The data for updating the application role connection
2102
2138
  * @param options - The options for updating the application role connection
2103
2139
  */
2104
- updateApplicationRoleConnection(applicationId: Snowflake, body: RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIApplicationRoleConnection>;
2140
+ updateApplicationRoleConnection(applicationId: Snowflake, body: RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIApplicationRoleConnection>;
2105
2141
  }
2106
2142
 
2107
2143
  declare class VoiceAPI {
@@ -2113,21 +2149,21 @@ declare class VoiceAPI {
2113
2149
  * @see {@link https://discord.com/developers/docs/resources/voice#list-voice-regions}
2114
2150
  * @param options - The options for fetching the voice regions
2115
2151
  */
2116
- getVoiceRegions({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIVoiceRegionsResult>;
2152
+ getVoiceRegions({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<RESTGetAPIVoiceRegionsResult>;
2117
2153
  /**
2118
2154
  * Fetches voice state of a user by their id
2119
2155
  *
2120
2156
  * @see {@link https://discord.com/developers/docs/resources/voice#get-user-voice-state}
2121
2157
  * @param options - The options for fetching user voice state
2122
2158
  */
2123
- getUserVoiceState(guildId: Snowflake, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIVoiceState>;
2159
+ getUserVoiceState(guildId: Snowflake, userId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIVoiceState>;
2124
2160
  /**
2125
2161
  * Fetches the current user's voice state
2126
2162
  *
2127
2163
  * @see {@link https://discord.com/developers/docs/resources/voice#get-current-user-voice-state}
2128
2164
  * @param options - The options for fetching user voice state
2129
2165
  */
2130
- getVoiceState(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIVoiceState>;
2166
+ getVoiceState(guildId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIVoiceState>;
2131
2167
  /**
2132
2168
  * Edits a user's voice state in a guild
2133
2169
  *
@@ -2137,7 +2173,7 @@ declare class VoiceAPI {
2137
2173
  * @param body - The data for editing the voice state
2138
2174
  * @param options - The options for editing the voice state
2139
2175
  */
2140
- editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<never>;
2176
+ editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<never>;
2141
2177
  /**
2142
2178
  * Edits the voice state for the current user
2143
2179
  *
@@ -2146,7 +2182,7 @@ declare class VoiceAPI {
2146
2182
  * @param body - The data for editing the voice state
2147
2183
  * @param options - The options for editing the voice state
2148
2184
  */
2149
- editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<never>;
2185
+ editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<never>;
2150
2186
  }
2151
2187
 
2152
2188
  declare class API {