From b173c0f38a51be6ed9efae5057614cba3af83b4c Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Thu, 25 Apr 2024 20:20:20 +0800 Subject: [PATCH] Make it a bit less painful... --- cogs/modmail.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cogs/modmail.py b/cogs/modmail.py index cda00550b8..e2469a416a 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -775,7 +775,7 @@ def format_log_embeds(self, logs, avatar_url): @commands.command(cooldown_after_parsing=True) @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() - @commands.cooldown(1, 600, BucketType.channel) + @commands.cooldown(2, 600, BucketType.channel) async def title(self, ctx, *, name: str): """Sets title for a thread""" await ctx.thread.set_title(name, ctx.channel.id) @@ -786,7 +786,7 @@ async def title(self, ctx, *, name: str): @commands.command(usage=" [options]", cooldown_after_parsing=True) @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() - @commands.cooldown(1, 600, BucketType.channel) + @commands.cooldown(2, 600, BucketType.channel) async def adduser(self, ctx, *users_arg: Union[discord.User, discord.Role, str]): """Adds a user to a modmail thread @@ -884,7 +884,7 @@ async def adduser(self, ctx, *users_arg: Union[discord.User, discord.Role, str]) @commands.command(usage=" [options]", cooldown_after_parsing=True) @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() - @commands.cooldown(1, 600, BucketType.channel) + @commands.cooldown(2, 600, BucketType.channel) async def removeuser(self, ctx, *users_arg: Union[discord.Member, discord.Role, str]): """Removes a user from a modmail thread @@ -977,7 +977,7 @@ async def removeuser(self, ctx, *users_arg: Union[discord.Member, discord.Role, @commands.command(usage=" [options]", cooldown_after_parsing=True) @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() - @commands.cooldown(1, 600, BucketType.channel) + @commands.cooldown(2, 600, BucketType.channel) async def anonadduser(self, ctx, *users_arg: Union[discord.Member, discord.Role, str]): """Adds a user to a modmail thread anonymously @@ -1071,7 +1071,7 @@ async def anonadduser(self, ctx, *users_arg: Union[discord.Member, discord.Role, @commands.command(usage=" [options]", cooldown_after_parsing=True) @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() - @commands.cooldown(1, 600, BucketType.channel) + @commands.cooldown(2, 600, BucketType.channel) async def anonremoveuser(self, ctx, *users_arg: Union[discord.Member, discord.Role, str]): """Removes a user from a modmail thread anonymously