aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py
index 79c03db2..84bd45da 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -374,6 +374,12 @@ class HTTPClient:
r = Route('PATCH', '/channels/{channel_id}/messages/{message_id}', channel_id=channel_id, message_id=message_id)
return self.request(r, json=fields)
+ def suppress_message_embeds(self, channel_id, message_id, *, suppress):
+ payload = { 'suppress': suppress }
+ r = Route('POST', '/channels/{channel_id}/messages/{message_id}/suppress-embeds',
+ channel_id=channel_id, message_id=message_id)
+ return self.request(r, json=payload)
+
def add_reaction(self, channel_id, message_id, emoji):
r = Route('PUT', '/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me',
channel_id=channel_id, message_id=message_id, emoji=emoji)