mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Make Message.ack an actual coroutine function.
This commit is contained in:
parent
30d87ca557
commit
746e20a826
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user