From 573fa90f1b1337d3c610b74c07ef9ff4872c37e1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 9 Dec 2015 21:35:06 -0500 Subject: [PATCH] Modify User-Agent header to meet React's requirements. --- discord/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 0ffe73b81..dbb2a80d4 100644 --- a/discord/client.py +++ b/discord/client.py @@ -107,7 +107,9 @@ class Client: self.connection = ConnectionState(self.dispatch, max_messages) self.session = aiohttp.ClientSession(loop=self.loop) - user_agent = 'discord.py/{0} Python/{1[0]}.{1[1]} aiohttp/{2}' + + # Blame React for this + user_agent = 'DiscordBot discord.py/{0} Python/{1[0]}.{1[1]} aiohttp/{2}' self.headers = { 'content-type': 'application/json',