diff --git a/discord/abc.py b/discord/abc.py index 64ddaa629..be2c9b215 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -751,6 +751,7 @@ class GuildChannel: category: Optional[:class:`abc.Snowflake`] The category to move this channel under. If ``None`` is given then it moves it out of the category. + This parameter is ignored if moving a category channel. sync_permissions: :class:`bool` Whether to sync the permissions with the category (if given). reason: :class:`str` diff --git a/discord/channel.py b/discord/channel.py index e63709d6f..9d3b200c4 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.