I use disnake library in python. I have list of premium users in bot and I want they to have a shorter cooldown for commands, than regular users. For example regular users have cooldown of 10 s, and premium users have cooldown of 3 s
import disnake
from disnake.ext import commands
pro_users = [1234567890, 907508957384]
intents = disnake.Intents.all()
client = commands.InteractionBot(intents=intents)
@commands.cooldown(1, 10, commands.BucketType.user)
@client.slash_command()
async def super_command(inter):
await inter.channel.send('Hello')
client.run('TOKEN')
I had an idea to raise CooldownError in command's body, but I want to know if I can do it without raising