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

@@ -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,))