Change to refresh commands not blindly update

This commit is contained in:
Skylar Grant 2023-02-19 19:02:17 -05:00
parent d12bb7f63a
commit b9c6827873

View File

@ -22,6 +22,21 @@ console.log(`Token: ${token} Client ID: ${clientId}`);
const rest = new REST({ version: '9' }).setToken(token); const rest = new REST({ version: '9' }).setToken(token);
(async () => {
try {
console.log('Started deleting application (/) commands.');
await rest.put(
Routes.applicationCommands(clientId),
{ body: "" },
);
console.log('Successfully deleted application (/) commands.');
} catch (error) {
console.error(error);
}
})();
(async () => { (async () => {
try { try {
console.log('Started refreshing application (/) commands.'); console.log('Started refreshing application (/) commands.');