Skip to content

Commit

Permalink
Make it a bit less painful...
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 25, 2024
1 parent 000c144 commit b173c0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -786,7 +786,7 @@ async def title(self, ctx, *, name: str):
@commands.command(usage="<users_or_roles...> [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
Expand Down Expand Up @@ -884,7 +884,7 @@ async def adduser(self, ctx, *users_arg: Union[discord.User, discord.Role, str])
@commands.command(usage="<users_or_roles...> [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
Expand Down Expand Up @@ -977,7 +977,7 @@ async def removeuser(self, ctx, *users_arg: Union[discord.Member, discord.Role,
@commands.command(usage="<users_or_roles...> [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
Expand Down Expand Up @@ -1071,7 +1071,7 @@ async def anonadduser(self, ctx, *users_arg: Union[discord.Member, discord.Role,
@commands.command(usage="<users_or_roles...> [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
Expand Down

0 comments on commit b173c0f

Please sign in to comment.