Checks if local commands are in sync with the database & Discord API
A response object with the sync status, consisting of new, updated, and deleted commands
Clears commands from the Discord API
Optional
guildId: null | stringThe guild ID to clear commands for, or none for global
A promise that resolves when the commands are cleared
Fetches commands from the Discord API
The guild ID to fetch commands for, or none for global
A promise that resolves with the command data
Syncs commands to the Discord API and our database. An API call is only made if there are new, updated, or deleted commands.
Optional
options: SyncCommandOptionsThe options to sync commands with
A promise that resolves when the commands are synced
Readonly
syncStatic
get
Data for all commands that the
client
has registered