mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Ignore moving category channels to another category
This commit is contained in:
1 parent
b850c9cd5d
commit
a30ad6acf2
2 files changed
+6
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user