mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 19:52:47 +00:00
/Umstieg cooldown hinzugefügt
Discord hat diesen nervigen cooldown von 2 mal channel umbennen innerhalb von 10min. In dem cooldown hier ist es 1 mal pro 10 minuten, zur Sicherheit...
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from src.handlers import rename_vc
|
||||
from src.embeds import build_info_embed, build_error_embed
|
||||
|
||||
def setup_commands(bot: discord.Bot):
|
||||
@bot.slash_command(description="Steige in den nächsten Zug! Beachte das Discord Spam limit (2x in 10min)")
|
||||
@commands.cooldown(1, 600, commands.BucketType.guild)
|
||||
async def umstieg(ctx):
|
||||
success = await rename_vc(bot)
|
||||
if not success:
|
||||
|
||||
Reference in New Issue
Block a user