Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

v1.3.2

Compare
Choose a tag to compare
@ming-suhi ming-suhi released this 27 Dec 13:03
· 13 commits to main since this release

Release Notes

Removed Client.getCommands() and made property commands

usage

//previous version
const slash = new Slash.Client(client, config);
console.log(slash.getCommands());

//new version
const slash = new Slash.Client(client, config);
console.log(slash.commands);

Changed Client.deleteCommand()

changed constructor guildObject to guildID

usage

//previous version
const slash = new Slash.Client(client, config);
let guild = client.guilds.cache.get(guild_id_here);
slash.deleteCommand(guild, commandID);

//new version
const slash = new Slash.Client(client, config);
slash.deleteCommand(guildID, commandID);