mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
add user-agent (fixes #4)
This commit is contained in:
1
utils.js
1
utils.js
@@ -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