Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhouweling committed Jan 28, 2025
1 parent 91d51a4 commit 740ce9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/discord/discord.mts
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,14 @@ export class DiscordService {
}
}

const headers = new Headers(options.headers);
headers.set("Authorization", `Bot ${this.env.DISCORD_TOKEN}`);
headers.set("content-type", "application/json;charset=UTF-8");

const fetchOptions = {
...options,
body: options.body ?? null,
headers: {
Authorization: `Bot ${this.env.DISCORD_TOKEN}`,
"content-type": "application/json;charset=UTF-8",
...options.headers,
},
headers: headers,
};

// having to rebind back to global fetch due to Cloudflare Workers
Expand Down

0 comments on commit 740ce9f

Please sign in to comment.