mirror of
https://github.com/discord/discord-example-app.git
synced 2026-08-24 02:24:14 -05:00
add user-agent (fixes #4)
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user