discord-sync-commands-v14
v2.0.0
Published
Synchronise commands across multiple Discord servers
Downloads
691
Readme
discord-sync-commands-v14
An upgrade over the existing sync-commands library made by @Androz2091
Features
- Sync commands over a single or multiple servers.
- Sync global commands.
- Discord.js v14 compatible
Basic handler to support it;
Below is a basic command handler that would support it.
Installation
Install discord-sync-commands-v14 with npm
npm install discord-sync-commands-v14
Code example.
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
});