Skip to content

Commit

Permalink
fix fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Jun 19, 2023
1 parent 309d505 commit cb2f035
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export class Command {
limit: "1",
include_applications: "false",
});

const url = `${this.config.DiscordBaseUrl}/api/v9/channels/${this.config.ChannelId}/application-commands/search?${searchParams}`;

const response = await fetch(url, {
const response = await this.config.fetch(url, {
headers: { authorization: this.config.SalaiToken },
});

Expand Down

0 comments on commit cb2f035

Please sign in to comment.