diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-09-05 11:38:26 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-09-05 11:38:26 -0400 |
commit | f924dd8fcaeca7523289b9aba46b6145c46b42dd (patch) | |
tree | 70294b1266fa1846b7ea122e88e48483fae3278e /resetcmd.js | |
parent | e4450c8417624b71d779cb4f41692538f9165e10 (diff) | |
download | sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.tar.gz sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.tar.bz2 sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.zip |
rename /use to /send, add resetcmd
Diffstat (limited to '')
-rw-r--r-- | resetcmd.js | 10 |
1 files changed, 10 insertions, 0 deletions
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 |