Supprimer 'registerCommands.js'

This commit is contained in:
Hugo DIMITRIJEVIC 2023-11-06 23:15:48 +01:00
parent 87f3faafb5
commit f28a345047

View File

@ -1,27 +0,0 @@
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const { clientId, guildId, token } = require('./config.json');
const commands = [
{
name: 'bustme',
description: 'Affiche votre avatar sur une image de buste',
}
];
const rest = new REST({ version: '9' }).setToken(token);
(async () => {
try {
console.log('Started refreshing application (/) commands.');
await rest.put(
Routes.applicationGuildCommands(clientId, guildId),
{ body: commands },
);
console.log('Successfully reloaded application (/) commands.');
} catch (error) {
console.error(error);
}
})();