typing
DiscommandClient
extends Client
Constructor
new DiscommandClient(clientOptions, options)
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
clientOptions | Client | discord.js' ClientOptions. |
options | DiscommandClientOptions | DiscommandClient's Option |
Properties
.discommandOptions
DiscommandClient's Options
Type: DiscommandClientOptions
Methods
.loadAll()
Description: Module Load and run
.deloadAll()
Description: Module deload
.reloadAll()
Description: Module reload
DiscommandClientOptions
PROPERTY | TYPE | OPTIONAL | EXAMPLE |
---|---|---|---|
directory | directory | { command: __dirname + '/commands' } | |
guildID | Snowflakes | O | your_guild_id |
plugin | Array<BasePlugin> | O | new Plugin() |
DiscommandHandler
extends BaseHandler
Constructor
new DiscommandHandler(options)
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
options | DiscommandHandlerOptions | DiscommandHandler's options |
Properties
.options
Type: DiscommandHandlerOptions
Methods
.loadAll()
Description: Module Load and run
.deloadAll()
Description: Module deload
.reloadAll()
Description: Module reload
DiscommandHandlerOptions
PROPERTY | TYPE | OPTIONAL | EXAMPLE |
---|---|---|---|
directory | string | __dirname + '/commands' | |
guildID | Snowflakes | O | your guild id |
Command
abstract
extends Base
Constructor
new Command(data)
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
data | ApplicationCommandData | Command's data |
Properties
.data
Type: ApplicationCommandData
Methods
.toJSON()
Return: ApplicationCommandData
Listener
abstract
extends Base
Constructor
new Listener(name)
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
name | string | Listener's name |
Properties
.once
Type: boolean