An upgrade over the existing sync-commands library made by @Androz2091
- Sync commands over a single or multiple servers.
- Sync global commands.
- Discord.js v14 compatible
Below is a basic command handler that would support it.
Install discord-sync-commands-v14 with npm
npm install discord-sync-commands-v14
use a simple menu to begin.
const sync = require('discord-sync-commands-v14');
sync(client, [
{
...
}
]);
the basic constructor is above, below is full code example;
const sync = require('discord-sync-commands-v14');
sync(client, [
{
name: 'ping',
description: 'Ping the bot.'
}
], {
debug: true,
guildId: '1234566' // remove this property to use global commands
});