diff options
| author | Rapptz <[email protected]> | 2019-04-14 21:05:20 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-14 21:05:20 -0400 |
| commit | 14d66e7b9c6e68f72cab22eedf2fea783f767b4a (patch) | |
| tree | b54452c39046e569e987693e2477be3beacd4823 /discord/message.py | |
| parent | Bump version to 1.1.0a (diff) | |
| download | discord.py-14d66e7b9c6e68f72cab22eedf2fea783f767b4a.tar.xz discord.py-14d66e7b9c6e68f72cab22eedf2fea783f767b4a.zip | |
Internal consistency with message related HTTPClient methods
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/message.py b/discord/message.py index 7199af22..f068d7d0 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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| |