Change to refresh commands not blindly update
This commit is contained in:
parent
d12bb7f63a
commit
b9c6827873
@ -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.');
|
||||||
|
Loading…
Reference in New Issue
Block a user