Refactor slash command synchronization logic to prevent duplicate commands in Discord. Update environment variables for command sync modes and enhance command clearing functionality. Improve command registration handling in the bot to streamline user experience.
Some checks failed
CI / Bot (Python) (push) Successful in 12s
CI / Dashboard (Next.js) (push) Failing after 9s

This commit is contained in:
TheOnlyMace
2026-07-21 22:53:51 +02:00
parent 1da2085087
commit a52d84467d
5 changed files with 130 additions and 90 deletions

View File

@@ -19,9 +19,9 @@ LAVALINK_PORT=13592
EMOJI_SYNC=false
JISHAKU_ENABLED=false
# Slash (/) command sync — guild sync makes commands appear immediately
SLASH_SYNC_GLOBAL=true
SLASH_SYNC_ALL_GUILDS=true
# Slash (/) command sync — use ONE mode to avoid duplicate commands in Discord
SLASH_SYNC_MODE=global
SLASH_CLEAR_GUILD_COMMANDS=true
# SLASH_GUILD_IDS=
# Traefik (optional override — default in compose: letsencrypt)