fix(moderation): fixed broken check decorators
All checks were successful
Pylint / Pylint (push) Successful in 1m7s

This commit is contained in:
Seaswimmer 2023-09-24 23:57:39 -04:00
parent 41daea645d
commit c251b2f29b
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -27,11 +27,12 @@ class Moderation(commands.Cog):
return not_found_list return not_found_list
@commands.group(autohelp=True) @commands.group(autohelp=True)
@checks.is_owner @checks.admin()
async def moderationset(self, ctx: commands.Context): async def moderationset(self, ctx: commands.Context):
"""Manage moderation commands.""" """Manage moderation commands."""
@moderationset.command(name="mysql") @moderationset.command(name="mysql")
@checks.is_owner()
async def moderationset_mysql(self, ctx: commands.Context): async def moderationset_mysql(self, ctx: commands.Context):
"""Configure MySQL connection details.""" """Configure MySQL connection details."""
await ctx.send(content="Click the button below to configure your MySQL connection details.", view=self.ConfigButtons(60)) await ctx.send(content="Click the button below to configure your MySQL connection details.", view=self.ConfigButtons(60))