Discord bot to open dong files

make sync generic

Changed files
+3 -4
src
+1 -2
.env.template
···
TOKEN="<Your Discord Bot Token>"
-
CLIENT="app id"
-
GUILD="dev server"
+
CLIENT="app id"
+2 -2
src/sync.js
···
`Started refreshing ${commands.length} application (/) commands.`
);
-
// The put method is used to fully refresh all commands in the guild with the current set
-
const data = await rest.put(Routes.applicationGuildCommands(clientId, guildId), {
+
// The put method is used to fully refresh all commands with the current set
+
const data = await rest.put(Routes.applicationCommands(clientId), {
body: commands,
});