From 427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Tue, 23 Feb 2021 08:36:37 +0000 Subject: Deprecate non-bot methods --- discord/channel.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'discord/channel.py') diff --git a/discord/channel.py b/discord/channel.py index db4b566d..7a5b9548 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -347,7 +347,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): bulk: :class:`bool` If ``True``, use bulk delete. Setting this to ``False`` is useful for mass-deleting a bot's own messages without :attr:`Permissions.manage_messages`. When ``True``, will - fall back to single delete if current account is a user bot, or if messages are + fall back to single delete if current account is a user bot (now deprecated), or if messages are older than two weeks. Raises @@ -1274,6 +1274,7 @@ class GroupChannel(discord.abc.Messageable, Hashable): return base + @utils.deprecated() async def add_recipients(self, *recipients): r"""|coro| @@ -1284,6 +1285,8 @@ class GroupChannel(discord.abc.Messageable, Hashable): add a recipient to the group, you must have a relationship with the user of type :attr:`RelationshipType.friend`. + .. deprecated:: 1.7 + Parameters ----------- \*recipients: :class:`User` @@ -1301,11 +1304,14 @@ class GroupChannel(discord.abc.Messageable, Hashable): for recipient in recipients: await req(self.id, recipient.id) + @utils.deprecated() async def remove_recipients(self, *recipients): r"""|coro| Removes recipients from this group. + .. deprecated:: 1.7 + Parameters ----------- \*recipients: :class:`User` @@ -1323,11 +1329,14 @@ class GroupChannel(discord.abc.Messageable, Hashable): for recipient in recipients: await req(self.id, recipient.id) + @utils.deprecated() async def edit(self, **fields): """|coro| Edits the group. + .. deprecated:: 1.7 + Parameters ----------- name: Optional[:class:`str`] -- cgit v1.2.3