From 84ae6b0cd9ae12180639c8a0b04cd7aafc443955 Mon Sep 17 00:00:00 2001 From: AkriliksKotya Date: Sat, 29 Nov 2025 19:48:27 +0500 Subject: [PATCH] permissions changes --- c/filter.py | 8 ++++---- c/moderation.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/c/filter.py b/c/filter.py index b687336..8121f59 100644 --- a/c/filter.py +++ b/c/filter.py @@ -74,7 +74,7 @@ class Filter(commands.Cog): @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def clear_msgdb(self, message): """ Clear db for 'message' @@ -93,7 +93,7 @@ class Filter(commands.Cog): await message.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def msgdb(self, message): """ Total number of DB msgsend @@ -109,7 +109,7 @@ class Filter(commands.Cog): await message.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def toggle(self, ctx, *msg): """ Toggle(msgsend, badwords, logs) @@ -139,7 +139,7 @@ class Filter(commands.Cog): await ctx.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def status(self, ctx): """ """ diff --git a/c/moderation.py b/c/moderation.py index f64256d..217137f 100644 --- a/c/moderation.py +++ b/c/moderation.py @@ -148,7 +148,7 @@ class Moderation(commands.Cog): await ctx.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def setwarnnumb(self, ctx,* , numb): server_id = ctx.guild.id row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,)) @@ -166,7 +166,7 @@ class Moderation(commands.Cog): await ctx.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def setwarnact(self, ctx,* , numb): server_id = ctx.guild.id row = self.bot.conwarn.execute("SELECT number FROM warnact WHERE server_id=?", (server_id,)) @@ -190,7 +190,7 @@ class Moderation(commands.Cog): await ctx.send(embed=embed) @commands.command() - @commands.is_owner() + @commands.has_permissions(administrator=True) async def warnsettings(self, ctx): server_id = ctx.guild.id row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))