Skip to content

Commit

Permalink
changed setting cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackstonecoden committed Dec 16, 2024
1 parent f5dbdb5 commit 9120f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/commands/settings_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, client: commands.Bot):
channel_command = app_commands.Group(name=discord.app_commands.locale_str("settings"), description=discord.app_commands.locale_str("settings_description"), default_permissions=discord.Permissions(administrator=True), guild_only=True)

@channel_command.command(name=discord.app_commands.locale_str("invite"), description=discord.app_commands.locale_str("settings_invite_description"))
@app_commands.checks.cooldown(1, 300, key=lambda i: i.user.id)
@app_commands.checks.cooldown(1, 30, key=lambda i: i.user.id)
@app_commands.describe(status=discord.app_commands.locale_str("settings_invite_describe_status"))
@app_commands.rename(status=discord.app_commands.locale_str("status"))
@app_commands.choices(status=[app_commands.Choice(name=discord.app_commands.locale_str("choice_settings_invite_on"), value=1),
Expand Down

0 comments on commit 9120f80

Please sign in to comment.