Skip to content

Commit b6e6d3f

Browse files
committed
Better delete, finally :)
1 parent 370e511 commit b6e6d3f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.scripts/delete-commands.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ rest.get(Routes.applicationCommands(config.clientId)).then((data) => {
3030
}`;
3131
promises.push(
3232
(async () => {
33-
console.log(`Deleting ${command.name}.`);
34-
return rest.delete(deleteUrl);
33+
return rest
34+
.delete(deleteUrl)
35+
.then(() => console.log(`Deleting ${command.name}.`));
3536
})()
3637
);
3738
}
3839
return Promise.all(promises);
39-
});
40-
console.log("Successfully deleted all commands.");
40+
}).then(
41+
() => console.log("Successfully deleted all commands.")
42+
);

0 commit comments

Comments
 (0)