Skip to content
Snippets Groups Projects
Unverified Commit 816e2988 authored by dnns01's avatar dnns01 Committed by GitHub
Browse files

Merge pull request #47 from FU-Hagen-Discord/fix-channel-sync

Sync channelpermissions to new category when moving
parents 00f34f9b 06d0ddce
No related branches found
No related tags found
No related merge requests found
......@@ -188,9 +188,9 @@ class LearningGroups(commands.Cog):
async def move_channel(self, channel, category):
for sortchannel in category.text_channels:
if sortchannel.name[1:] > channel.name[1:]:
await channel.move(category=category, before=sortchannel)
await channel.move(category=category, before=sortchannel, sync_permissions=True)
return
await channel.move(category=category, end=True)
await channel.move(category=category, sync_permissions=True, end=True)
async def add_requested_group_channel(self, message, direct=False):
channel_config = self.groups["requested"].get(str(message.id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment