fix war channels logic

This commit is contained in:
un1xx committed 2025-11-02 12:24:04 +05:30
1 parent ce1385ea91
commit 8ae199ab45
1 file changed
-7
-7
View File
@@ -517,8 +517,6 @@ class WarMonitor(commands.Cog):
await m.edit(content="> \u2705 synced wars")
@commands.command()
@commands.has_permissions(administrator=True)
@commands.has_role("The Croak Council")
async def archive(self, ctx: CustomCtx):
categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES]
channels = [ch for cat in categories for ch in cat.text_channels]
@@ -539,8 +537,6 @@ class WarMonitor(commands.Cog):
await ctx.channel.edit(sync_permissions=True)
@commands.command()
@commands.has_permissions(administrator=True)
@commands.has_role("The Croak Council")
async def addm(self, ctx: CustomCtx, *, member: discord.Member):
categories = [await self.bot.fetch_channel(cat) for cat in CATEGORIES]
channels = [ch for cat in categories for ch in cat.text_channels]
@@ -553,8 +549,6 @@ class WarMonitor(commands.Cog):
await ctx.channel.send(f"added {member.mention} to {ctx.channel.name}")
@commands.command()
@commands.has_permissions(administrator=True)
@commands.has_role("The Croak Council")
async def delete(self, ctx: CustomCtx):
category = await self.bot.fetch_channel(ARCHIVE_CATEGORY)
if ctx.channel not in category.text_channels:
@@ -564,7 +558,6 @@ class WarMonitor(commands.Cog):
@commands.command()
@commands.has_permissions(administrator=True)
@commands.has_role("The Croak Council")
async def delall(self, ctx: CustomCtx):
category = await self.bot.fetch_channel(ARCHIVE_CATEGORY)
if ctx.channel not in category.text_channels: