We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370e511 commit b6e6d3fCopy full SHA for b6e6d3f
.scripts/delete-commands.js
@@ -30,11 +30,13 @@ rest.get(Routes.applicationCommands(config.clientId)).then((data) => {
30
}`;
31
promises.push(
32
(async () => {
33
- console.log(`Deleting ${command.name}.`);
34
- return rest.delete(deleteUrl);
+ return rest
+ .delete(deleteUrl)
35
+ .then(() => console.log(`Deleting ${command.name}.`));
36
})()
37
);
38
}
39
return Promise.all(promises);
-});
40
-console.log("Successfully deleted all commands.");
+}).then(
41
+ () => console.log("Successfully deleted all commands.")
42
+);
0 commit comments