diff options
| author | Rapptz <[email protected]> | 2015-12-09 21:35:06 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-09 21:35:06 -0500 |
| commit | 573fa90f1b1337d3c610b74c07ef9ff4872c37e1 (patch) | |
| tree | d77a20e0520fe281b054eb19dae1d5ed06943611 | |
| parent | Client now keeps a reference to the VoiceClient constructed. (diff) | |
| download | discord.py-573fa90f1b1337d3c610b74c07ef9ff4872c37e1.tar.xz discord.py-573fa90f1b1337d3c610b74c07ef9ff4872c37e1.zip | |
Modify User-Agent header to meet React's requirements.
| -rw-r--r-- | discord/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index 0ffe73b8..dbb2a80d 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', |