Skip to content

Commit

Permalink
add user-agent (fixes discord#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
vi authored May 15, 2022
1 parent 6319d02 commit d5251be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function DiscordRequest(endpoint, options) {
headers: {
Authorization: `Bot ${process.env.DISCORD_TOKEN}`,
'Content-Type': 'application/json; charset=UTF-8',
'User-Agent': 'Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)',
},
...options
});
Expand Down

0 comments on commit d5251be

Please sign in to comment.