18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
const { Routes } = require('discord.js');
|
|
const { REST } = require('@discordjs/rest');
|
|
|
|
const config = require(path.join(__dirname, 'config', 'config.json'));
|
|
|
|
module.exports = () => {
|
|
const rest = new REST({ version: '10' }).setToken(config.clientToken);
|
|
|
|
return rest.put(Routes.applicationCommands(config.clientId), { body: [] });
|
|
};
|
|
|
|
if (require.main === module)
|
|
module.exports();
|