I don't understand decorators

This commit is contained in:
unknown 2023-06-03 19:17:23 +02:00
parent 26d2d21f37
commit e8a38467e0

View File

@ -61,7 +61,7 @@ class ReginaldCog(commands.Cog):
await ctx.send("OpenAI API key set successfully.") await ctx.send("OpenAI API key set successfully.")
@commands.guild_only() @commands.guild_only()
@commands.check_any(is_admin, is_allowed) @commands.check_any(commands.check(is_admin), commands.check(is_allowed))
@commands.command(help="Ask Reginald a question") @commands.command(help="Ask Reginald a question")
@commands.cooldown(1, 10, commands.BucketType.user) # 10 second cooldown per user @commands.cooldown(1, 10, commands.BucketType.user) # 10 second cooldown per user
async def reginald(self, ctx, *, prompt=None): async def reginald(self, ctx, *, prompt=None):