aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/channel.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 1879a974..68383b8c 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -791,17 +791,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
Editing the category failed.
"""
- try:
- position = options.pop('position')
- except KeyError:
- pass
- else:
- await self._move(position, reason=reason)
- self.position = position
-
- if options:
- data = await self._state.http.edit_channel(self.id, reason=reason, **options)
- self._update(self.guild, data)
+ await self._edit(options=options, reason=reason)
@property
def channels(self):