|
|
@ -339,8 +339,7 @@ class HTTPClient: |
|
|
|
return self.request(r, data=form) |
|
|
|
|
|
|
|
async def ack_message(self, channel_id, message_id): |
|
|
|
r = Route('POST', '/channels/{channel_id}/messages/{message_id}/ack', channel_id=channel_id, |
|
|
|
message_id=message_id) |
|
|
|
r = Route('POST', '/channels/{channel_id}/messages/{message_id}/ack', channel_id=channel_id, message_id=message_id) |
|
|
|
data = await self.request(r, json={'token': self._ack_token}) |
|
|
|
self._ack_token = data['token'] |
|
|
|
|
|
|
@ -348,8 +347,7 @@ class HTTPClient: |
|
|
|
return self.request(Route('POST', '/guilds/{guild_id}/ack', guild_id=guild_id)) |
|
|
|
|
|
|
|
def delete_message(self, channel_id, message_id, *, reason=None): |
|
|
|
r = Route('DELETE', '/channels/{channel_id}/messages/{message_id}', channel_id=channel_id, |
|
|
|
message_id=message_id) |
|
|
|
r = Route('DELETE', '/channels/{channel_id}/messages/{message_id}', channel_id=channel_id, message_id=message_id) |
|
|
|
return self.request(r, reason=reason) |
|
|
|
|
|
|
|
def delete_messages(self, channel_id, message_ids, *, reason=None): |
|
|
@ -361,8 +359,7 @@ class HTTPClient: |
|
|
|
return self.request(r, json=payload, reason=reason) |
|
|
|
|
|
|
|
def edit_message(self, message_id, channel_id, **fields): |
|
|
|
r = Route('PATCH', '/channels/{channel_id}/messages/{message_id}', channel_id=channel_id, |
|
|
|
message_id=message_id) |
|
|
|
r = Route('PATCH', '/channels/{channel_id}/messages/{message_id}', channel_id=channel_id, message_id=message_id) |
|
|
|
return self.request(r, json=fields) |
|
|
|
|
|
|
|
def add_reaction(self, message_id, channel_id, emoji): |
|
|
|