aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-17 20:37:33 -0500
committerRapptz <[email protected]>2016-11-17 20:37:33 -0500
commit18178c26aa9f39d8770d710c6a63a8d1af95ddc8 (patch)
treeea2f30e81ec45ac3f51e2d841f9e59b6a31a6804 /discord/http.py
parentAdd atomic add and remove role endpoints to HTTPClient. (diff)
downloaddiscord.py-18178c26aa9f39d8770d710c6a63a8d1af95ddc8.tar.xz
discord.py-18178c26aa9f39d8770d710c6a63a8d1af95ddc8.zip
Add support for clearing a message's reactions.
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py
index 1200be71..37b79c64 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -289,6 +289,10 @@ class HTTPClient:
params['after'] = after
return self.get(url, params=params, bucket='%s:%s' % (_func_(), channel_id))
+ def clear_reactions(self, message_id, channel_id):
+ url = '{0.CHANNELS}/{1}/messages/{2}/reactions'.format(self, channel_id, message_id)
+ return self.delete(url)
+
def get_message(self, channel_id, message_id):
url = '{0.CHANNELS}/{1}/messages/{2}'.format(self, channel_id, message_id)
return self.get(url, bucket=_func_())