SlashGuild
This object contains all commands of a guild.
Last updated
Was this helpful?
This object contains all commands of a guild.
Last updated
Was this helpful?
Parameter
Type
Required
Default
Description
guildID
string
true
none
The guild this object is attached to.
handler
true
none
The handler this command uses
id
The ID of this command. Type: string
handler
The handler used. Type:
addCommand(command: )
Add a command to this guild. Returns:
async load()
Load the commands. Returns: void
hasName(name: string)
Check if this guild contains a command by name. Returns: boolean
getName(name: string)
hasID(id: string)
Check if this guild contains a command by id. Returns: boolean
getID(id: string)
Get a command from this guild by name. Returns: | undefined
Get a command from this guild by id. Returns: | undefined