aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-06 01:03:57 -0400
committerRapptz <[email protected]>2016-11-06 01:03:57 -0400
commitae796e0d01f940a72e46abd28e7085aaa320fda1 (patch)
tree49d1402a0193953d27478d69bed7d5f6c46bb435 /discord/http.py
parentFix crash on reaction remove. (diff)
downloaddiscord.py-ae796e0d01f940a72e46abd28e7085aaa320fda1.tar.xz
discord.py-ae796e0d01f940a72e46abd28e7085aaa320fda1.zip
Change buckets for reactions.
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/http.py b/discord/http.py
index 01d17d55..d2cf2e4e 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -264,12 +264,12 @@ class HTTPClient:
def add_reaction(self, message_id, channel_id, emoji):
url = '{0.CHANNELS}/{1}/messages/{2}/reactions/{3}/@me'.format(
self, channel_id, message_id, emoji)
- return self.put(url, bucket=_func_())
+ return self.put(url, bucket='%s:%s' % (_func_(), channel_id))
def remove_reaction(self, message_id, channel_id, emoji, member_id):
url = '{0.CHANNELS}/{1}/messages/{2}/reactions/{3}/{4}'.format(
self, channel_id, message_id, emoji, member_id)
- return self.delete(url, bucket=_func_())
+ return self.delete(url, bucket='%s:%s' % (_func_(), channel_id))
def get_reaction_users(self, message_id, channel_id, emoji, limit, after=None):
url = '{0.CHANNELS}/{1}/messages/{2}/reactions/{3}'.format(
@@ -277,7 +277,7 @@ class HTTPClient:
params = {'limit': limit}
if after:
params['after'] = after
- return self.get(url, params=params, bucket=_func_())
+ return self.get(url, params=params, bucket='%s:%s' % (_func_(), channel_id))
def get_message(self, channel_id, message_id):
url = '{0.CHANNELS}/{1}/messages/{2}'.format(self, channel_id, message_id)