@@ -42,9 +42,10 @@ export class ApplicationCommandsAPI {
4242 public async getGlobalCommands (
4343 applicationId : Snowflake ,
4444 query : RESTGetAPIApplicationCommandsQuery = { } ,
45- { signal } : Pick < RequestData , 'signal' > = { } ,
45+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
4646 ) {
4747 return this . rest . get ( Routes . applicationCommands ( applicationId ) , {
48+ auth,
4849 query : makeURLSearchParams ( query ) ,
4950 signal,
5051 } ) as Promise < RESTGetAPIApplicationCommandsResult > ;
@@ -61,9 +62,10 @@ export class ApplicationCommandsAPI {
6162 public async createGlobalCommand (
6263 applicationId : Snowflake ,
6364 body : RESTPostAPIApplicationCommandsJSONBody ,
64- { signal } : Pick < RequestData , 'signal' > = { } ,
65+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
6566 ) {
6667 return this . rest . post ( Routes . applicationCommands ( applicationId ) , {
68+ auth,
6769 body,
6870 signal,
6971 } ) as Promise < RESTPostAPIApplicationCommandsResult > ;
@@ -80,9 +82,10 @@ export class ApplicationCommandsAPI {
8082 public async getGlobalCommand (
8183 applicationId : Snowflake ,
8284 commandId : Snowflake ,
83- { signal } : Pick < RequestData , 'signal' > = { } ,
85+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
8486 ) {
8587 return this . rest . get ( Routes . applicationCommand ( applicationId , commandId ) , {
88+ auth,
8689 signal,
8790 } ) as Promise < RESTGetAPIApplicationCommandResult > ;
8891 }
@@ -100,9 +103,10 @@ export class ApplicationCommandsAPI {
100103 applicationId : Snowflake ,
101104 commandId : Snowflake ,
102105 body : RESTPatchAPIApplicationCommandJSONBody ,
103- { signal } : Pick < RequestData , 'signal' > = { } ,
106+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
104107 ) {
105108 return this . rest . patch ( Routes . applicationCommand ( applicationId , commandId ) , {
109+ auth,
106110 body,
107111 signal,
108112 } ) as Promise < RESTPatchAPIApplicationCommandResult > ;
@@ -119,9 +123,9 @@ export class ApplicationCommandsAPI {
119123 public async deleteGlobalCommand (
120124 applicationId : Snowflake ,
121125 commandId : Snowflake ,
122- { signal } : Pick < RequestData , 'signal' > = { } ,
126+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
123127 ) {
124- await this . rest . delete ( Routes . applicationCommand ( applicationId , commandId ) , { signal } ) ;
128+ await this . rest . delete ( Routes . applicationCommand ( applicationId , commandId ) , { auth , signal } ) ;
125129 }
126130
127131 /**
@@ -135,9 +139,10 @@ export class ApplicationCommandsAPI {
135139 public async bulkOverwriteGlobalCommands (
136140 applicationId : Snowflake ,
137141 body : RESTPutAPIApplicationCommandsJSONBody ,
138- { signal } : Pick < RequestData , 'signal' > = { } ,
142+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
139143 ) {
140144 return this . rest . put ( Routes . applicationCommands ( applicationId ) , {
145+ auth,
141146 body,
142147 signal,
143148 } ) as Promise < RESTPutAPIApplicationCommandsResult > ;
@@ -156,9 +161,10 @@ export class ApplicationCommandsAPI {
156161 applicationId : Snowflake ,
157162 guildId : Snowflake ,
158163 query : RESTGetAPIApplicationGuildCommandsQuery = { } ,
159- { signal } : Pick < RequestData , 'signal' > = { } ,
164+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
160165 ) {
161166 return this . rest . get ( Routes . applicationGuildCommands ( applicationId , guildId ) , {
167+ auth,
162168 query : makeURLSearchParams ( query ) ,
163169 signal,
164170 } ) as Promise < RESTGetAPIApplicationGuildCommandsResult > ;
@@ -177,9 +183,10 @@ export class ApplicationCommandsAPI {
177183 applicationId : Snowflake ,
178184 guildId : Snowflake ,
179185 body : RESTPostAPIApplicationGuildCommandsJSONBody ,
180- { signal } : Pick < RequestData , 'signal' > = { } ,
186+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
181187 ) {
182188 return this . rest . post ( Routes . applicationGuildCommands ( applicationId , guildId ) , {
189+ auth,
183190 body,
184191 signal,
185192 } ) as Promise < RESTPostAPIApplicationGuildCommandsResult > ;
@@ -198,9 +205,10 @@ export class ApplicationCommandsAPI {
198205 applicationId : Snowflake ,
199206 guildId : Snowflake ,
200207 commandId : Snowflake ,
201- { signal } : Pick < RequestData , 'signal' > = { } ,
208+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
202209 ) {
203210 return this . rest . get ( Routes . applicationGuildCommand ( applicationId , guildId , commandId ) , {
211+ auth,
204212 signal,
205213 } ) as Promise < RESTGetAPIApplicationGuildCommandResult > ;
206214 }
@@ -220,9 +228,10 @@ export class ApplicationCommandsAPI {
220228 guildId : Snowflake ,
221229 commandId : Snowflake ,
222230 body : RESTPatchAPIApplicationGuildCommandJSONBody ,
223- { signal } : Pick < RequestData , 'signal' > = { } ,
231+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
224232 ) {
225233 return this . rest . patch ( Routes . applicationGuildCommand ( applicationId , guildId , commandId ) , {
234+ auth,
226235 body,
227236 signal,
228237 } ) as Promise < RESTPatchAPIApplicationGuildCommandResult > ;
@@ -241,9 +250,9 @@ export class ApplicationCommandsAPI {
241250 applicationId : Snowflake ,
242251 guildId : Snowflake ,
243252 commandId : Snowflake ,
244- { signal } : Pick < RequestData , 'signal' > = { } ,
253+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
245254 ) {
246- await this . rest . delete ( Routes . applicationGuildCommand ( applicationId , guildId , commandId ) , { signal } ) ;
255+ await this . rest . delete ( Routes . applicationGuildCommand ( applicationId , guildId , commandId ) , { auth , signal } ) ;
247256 }
248257
249258 /**
@@ -259,9 +268,10 @@ export class ApplicationCommandsAPI {
259268 applicationId : Snowflake ,
260269 guildId : Snowflake ,
261270 body : RESTPutAPIApplicationGuildCommandsJSONBody ,
262- { signal } : Pick < RequestData , 'signal' > = { } ,
271+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
263272 ) {
264273 return this . rest . put ( Routes . applicationGuildCommands ( applicationId , guildId ) , {
274+ auth,
265275 body,
266276 signal,
267277 } ) as Promise < RESTPutAPIApplicationGuildCommandsResult > ;
@@ -280,9 +290,10 @@ export class ApplicationCommandsAPI {
280290 applicationId : Snowflake ,
281291 guildId : Snowflake ,
282292 commandId : Snowflake ,
283- { signal } : Pick < RequestData , 'signal' > = { } ,
293+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
284294 ) {
285295 return this . rest . get ( Routes . applicationCommandPermissions ( applicationId , guildId , commandId ) , {
296+ auth,
286297 signal,
287298 } ) as Promise < RESTGetAPIApplicationCommandPermissionsResult > ;
288299 }
@@ -298,9 +309,10 @@ export class ApplicationCommandsAPI {
298309 public async getGuildCommandsPermissions (
299310 applicationId : Snowflake ,
300311 guildId : Snowflake ,
301- { signal } : Pick < RequestData , 'signal' > = { } ,
312+ { auth , signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
302313 ) {
303314 return this . rest . get ( Routes . guildApplicationCommandsPermissions ( applicationId , guildId ) , {
315+ auth,
304316 signal,
305317 } ) as Promise < RESTGetAPIGuildApplicationCommandsPermissionsResult > ;
306318 }
0 commit comments