diff options
| author | Rapptz <[email protected]> | 2021-04-04 10:09:25 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-04 10:15:30 -0400 |
| commit | 54288879e28cc63eefce33311ec393a4eed476c4 (patch) | |
| tree | 5bada5e0d4f1c997773d7216d14b3338ac76f1fa /discord/guild.py | |
| parent | Remove asyncio.Task subclass in preference to task names (diff) | |
| download | discord.py-54288879e28cc63eefce33311ec393a4eed476c4.tar.xz discord.py-54288879e28cc63eefce33311ec393a4eed476c4.zip | |
Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/discord/guild.py b/discord/guild.py index b7a1b690..eb192e6b 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -2090,29 +2090,6 @@ class Guild(Hashable): payload['max_age'] = 0 return Invite(state=self._state, data=payload) - @utils.deprecated() - def ack(self): - """|coro| - - Marks every message in this guild as read. - - The user must not be a bot user. - - .. deprecated:: 1.7 - - 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.') - return state.http.ack_guild(self.id) - def audit_logs(self, *, limit=100, before=None, after=None, oldest_first=None, user=None, action=None): """Returns an :class:`AsyncIterator` that enables receiving the guild's audit logs. |