permissions changes
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
"""
|
||||
|
||||
@@ -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,))
|
||||
|
||||
Reference in New Issue
Block a user