From f924dd8fcaeca7523289b9aba46b6145c46b42dd Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 5 Sep 2023 11:38:26 -0400 Subject: rename /use to /send, add resetcmd --- resetcmd.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 resetcmd.js (limited to 'resetcmd.js') diff --git a/resetcmd.js b/resetcmd.js new file mode 100644 index 0000000..e11e54a --- /dev/null +++ b/resetcmd.js @@ -0,0 +1,10 @@ +const { REST, Routes } = require('discord.js'); +const { clientId, token } = require('./config.json'); + +// Construct and prepare an instance of the REST module +const rest = new REST().setToken(token); + +// and deploy your commands! +rest.put(Routes.applicationCommands(clientId), { body: [] }) + .then(() => console.log('Successfully deleted all application commands.')) + .catch(console.error); \ No newline at end of file -- cgit v1.2.3