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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user