permissions changes

This commit is contained in:
2025-11-29 19:48:27 +05:00
parent 2b11ba3f51
commit 84ae6b0cd9
2 changed files with 7 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ class Filter(commands.Cog):
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def clear_msgdb(self, message): async def clear_msgdb(self, message):
""" """
Clear db for 'message' Clear db for 'message'
@@ -93,7 +93,7 @@ class Filter(commands.Cog):
await message.send(embed=embed) await message.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def msgdb(self, message): async def msgdb(self, message):
""" """
Total number of DB msgsend Total number of DB msgsend
@@ -109,7 +109,7 @@ class Filter(commands.Cog):
await message.send(embed=embed) await message.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def toggle(self, ctx, *msg): async def toggle(self, ctx, *msg):
""" """
Toggle(msgsend, badwords, logs) Toggle(msgsend, badwords, logs)
@@ -139,7 +139,7 @@ class Filter(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def status(self, ctx): async def status(self, ctx):
""" """
""" """

View File

@@ -148,7 +148,7 @@ class Moderation(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def setwarnnumb(self, ctx,* , numb): async def setwarnnumb(self, ctx,* , numb):
server_id = ctx.guild.id server_id = ctx.guild.id
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_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) await ctx.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def setwarnact(self, ctx,* , numb): async def setwarnact(self, ctx,* , numb):
server_id = ctx.guild.id server_id = ctx.guild.id
row = self.bot.conwarn.execute("SELECT number FROM warnact WHERE server_id=?", (server_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) await ctx.send(embed=embed)
@commands.command() @commands.command()
@commands.is_owner() @commands.has_permissions(administrator=True)
async def warnsettings(self, ctx): async def warnsettings(self, ctx):
server_id = ctx.guild.id server_id = ctx.guild.id
row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,)) row = self.bot.conwarn.execute("SELECT number FROM warnid WHERE server_id=?", (server_id,))