Internal consistency with message related HTTPClient methods

This commit is contained in:
Rapptz
2019-04-14 21:05:20 -04:00
parent 14a593b026
commit 14d66e7b9c
4 changed files with 16 additions and 16 deletions

View File

@ -623,7 +623,7 @@ class Message:
if embed is not None:
fields['embed'] = embed.to_dict()
data = await self._state.http.edit_message(self.id, self.channel.id, **fields)
data = await self._state.http.edit_message(self.channel.id, self.id, **fields)
self._update(channel=self.channel, data=data)
try:
@ -713,7 +713,7 @@ class Message:
"""
emoji = self._emoji_reaction(emoji)
await self._state.http.add_reaction(self.id, self.channel.id, emoji)
await self._state.http.add_reaction(self.channel.id, self.id, emoji)
async def remove_reaction(self, emoji, member):
"""|coro|
@ -750,9 +750,9 @@ class Message:
emoji = self._emoji_reaction(emoji)
if member.id == self._state.self_id:
await self._state.http.remove_own_reaction(self.id, self.channel.id, emoji)
await self._state.http.remove_own_reaction(self.channel.id, self.id, emoji)
else:
await self._state.http.remove_reaction(self.id, self.channel.id, emoji, member.id)
await self._state.http.remove_reaction(self.channel.id, self.id, emoji, member.id)
@staticmethod
def _emoji_reaction(emoji):
@ -782,7 +782,7 @@ class Message:
Forbidden
You do not have the proper permissions to remove all the reactions.
"""
await self._state.http.clear_reactions(self.id, self.channel.id)
await self._state.http.clear_reactions(self.channel.id, self.id)
def ack(self):
"""|coro|