I want to make a command that have only a cooldown if the user is not in a list This is my code:
@commands.command(name='cooldown')
@commands.cooldown(1, 300, commands.BucketType.user)
async def cdown(self, ctx):
await ctx.send("Executed")
And this is how it should be:
@commands.command(name='cooldown')
if not user in no_cooldown_users:
@commands.cooldown(1, 300, commands.BucketType.user)
async def cdown(self, ctx):
await ctx.send("Executed")
Is there any possibility to make this instead of using a config?