blob: e11e54accdcdb1fde186ae76a94b5e5a124631a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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);
|