Skip to content

Commit 76bb76c

Browse files
committed
fix: fix requests
1 parent 2da2b88 commit 76bb76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export async function getWebhooks(id: string, creator: BaseSlashCreator): Promis
180180
const cached = await client.get(key);
181181
if (cached) return JSON.parse(cached);
182182

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 });
184184

185185
await client.set(key, JSON.stringify(webhooks), 'EX', 6 * 60 * 60);
186186
return webhooks;
@@ -191,7 +191,7 @@ export async function getChannels(id: string, creator: BaseSlashCreator): Promis
191191
const cached = await client.get(key);
192192
if (cached) return JSON.parse(cached);
193193

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 });
195195

196196
await client.set(key, JSON.stringify(channels), 'EX', 6 * 60 * 60);
197197
return channels;

0 commit comments

Comments
 (0)