aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-03-30 03:51:06 -0400
committerRapptz <[email protected]>2021-03-30 03:51:06 -0400
commita30ad6acf26d09edca09c43c24f5228ece3d8846 (patch)
treef5dbac63cae65fd259407511fbb81396c1baa4cd /discord/channel.py
parentAdd GuildChannel.move helper method to help with moving channels (diff)
downloaddiscord.py-a30ad6acf26d09edca09c43c24f5228ece3d8846.tar.xz
discord.py-a30ad6acf26d09edca09c43c24f5228ece3d8846.zip
Ignore moving category channels to another category
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index e63709d6..9d3b200c 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -823,6 +823,11 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
await self._edit(options=options, reason=reason)
+ @utils.copy_doc(discord.abc.GuildChannel.move)
+ async def move(self, **kwargs):
+ kwargs.pop('category', None)
+ await super().move(**kwargs)
+
@property
def channels(self):
"""List[:class:`abc.GuildChannel`]: Returns the channels that are under this category.