aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-18 11:52:18 -0400
committerRapptz <[email protected]>2017-03-18 11:52:18 -0400
commit4ffded622acc95e0953867e32781ebedb6629513 (patch)
tree8237e6ce6dadb070c8319c5cb4ecfb89986c2691
parentFix Client inability to shard by actually propagating the shard_id (diff)
downloaddiscord.py-4ffded622acc95e0953867e32781ebedb6629513.tar.xz
discord.py-4ffded622acc95e0953867e32781ebedb6629513.zip
Removing acking on channels.
-rw-r--r--discord/abc.py22
-rw-r--r--discord/http.py6
2 files changed, 0 insertions, 28 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 0ad5b5a8..7472c103 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -777,25 +777,3 @@ class Messageable(metaclass=abc.ABCMeta):
counter += 1
"""
return HistoryIterator(self, limit=limit, before=before, after=after, around=around, reverse=reverse)
-
- @asyncio.coroutine
- def ack(self):
- """|coro|
-
- Marks this channel as read.
-
- The user must not be a bot user.
-
- Raises
- -------
- HTTPException
- Acking failed.
- ClientException
- You must not be a bot user.
- """
-
- state = self._state
- if state.is_bot:
- raise ClientException('Must not be a bot account to ack messages.')
- channel = yield from self._get_channel()
- yield from state.http.ack_channel(channel.id)
diff --git a/discord/http.py b/discord/http.py
index 2627d966..34db788f 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -326,12 +326,6 @@ class HTTPClient:
data = yield from self.request(r, json={'token': self._ack_token})
self._ack_token = data['token']
- @asyncio.coroutine
- def ack_channel(self, channel_id):
- r = Route('POST', '/channels/{channel_id}/ack', channel_id=channel_id)
- data = yield from self.request(r, json={'token': self._ack_token})
- self._ack_token = data['token']
-
def ack_guild(self, guild_id):
return self.request(Route('POST', '/guilds/{guild_id}/ack', guild_id=guild_id))