Supprimer 'registerCommands.js'
This commit is contained in:
parent
87f3faafb5
commit
f28a345047
@ -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);
|
|
||||||
}
|
|
||||||
})();
|
|
Loading…
Reference in New Issue
Block a user