aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-20 13:49:38 -0400
committerRapptz <[email protected]>2019-04-20 13:49:38 -0400
commit746e20a826d1b0168f7e0566d502dfabc5f75184 (patch)
treef3ee7a229ef0b14d42d639ae7a6742f2820626fe
parentAdd currently undocumented premium_tier field. (diff)
downloaddiscord.py-746e20a826d1b0168f7e0566d502dfabc5f75184.tar.xz
discord.py-746e20a826d1b0168f7e0566d502dfabc5f75184.zip
Make Message.ack an actual coroutine function.
-rw-r--r--discord/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py
index f38ee42c..c82c5d18 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -798,7 +798,7 @@ class Message:
"""
await self._state.http.clear_reactions(self.channel.id, self.id)
- def ack(self):
+ async def ack(self):
"""|coro|
Marks this message as read.
@@ -816,4 +816,4 @@ class Message:
state = self._state
if state.is_bot:
raise ClientException('Must not be a bot account to ack messages.')
- return state.http.ack_message(self.channel.id, self.id)
+ return await state.http.ack_message(self.channel.id, self.id)