feat(bot): ✨ Add 15 seconds cooldown to skip and call commands.
This commit is contained in:
@@ -82,6 +82,7 @@ class Calls(base.Cog):
|
||||
|
||||
@commands.command(aliases=["c"])
|
||||
@commands.guild_only()
|
||||
@commands.cooldown(1, 15, commands.BucketType.channel)
|
||||
@checks.is_unbanned()
|
||||
@transactions.atomic()
|
||||
async def call(self, ctx: commands.Context) -> None:
|
||||
@@ -262,6 +263,7 @@ class Calls(base.Cog):
|
||||
|
||||
@commands.command(aliases=["s"])
|
||||
@commands.guild_only()
|
||||
@commands.cooldown(1, 15, commands.BucketType.channel)
|
||||
@checks.is_unbanned()
|
||||
@transactions.atomic()
|
||||
async def skip(self, ctx: commands.Context) -> None:
|
||||
|
||||
Reference in New Issue
Block a user