Slash commands work well, no hassle, set with simple code: bot.commands.set(command.name, command)
But I noticed that they are set only when the bot is running and it is added to the Discord server. If the bot is already on the Discord server, and a new command appeared later, then command does not appear in the list. I fix this by a second invitation, but commands in the list start to double, as if they were cloning yourself. Can this be fixable?