File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export async function getWebhooks(id: string, creator: BaseSlashCreator): Promis
180
180
const cached = await client . get ( key ) ;
181
181
if ( cached ) return JSON . parse ( cached ) ;
182
182
183
- const webhooks = await creator . requestHandler . request < DiscordWebhook [ ] > ( 'GET' , `/guilds/${ id } /webhooks` ) ;
183
+ const webhooks = await creator . requestHandler . request < DiscordWebhook [ ] > ( 'GET' , `/guilds/${ id } /webhooks` , { auth : true } ) ;
184
184
185
185
await client . set ( key , JSON . stringify ( webhooks ) , 'EX' , 6 * 60 * 60 ) ;
186
186
return webhooks ;
@@ -191,7 +191,7 @@ export async function getChannels(id: string, creator: BaseSlashCreator): Promis
191
191
const cached = await client . get ( key ) ;
192
192
if ( cached ) return JSON . parse ( cached ) ;
193
193
194
- const channels = await creator . requestHandler . request < DiscordChannel [ ] > ( 'GET' , `/guilds/${ id } /channels` ) ;
194
+ const channels = await creator . requestHandler . request < DiscordChannel [ ] > ( 'GET' , `/guilds/${ id } /channels` , { auth : true } ) ;
195
195
196
196
await client . set ( key , JSON . stringify ( channels ) , 'EX' , 6 * 60 * 60 ) ;
197
197
return channels ;
You can’t perform that action at this time.
0 commit comments