typing

DiscommandClient

extends Clientopen in new window

Constructor

new DiscommandClient(clientOptions, options)
PARAMETERTYPEDESCRIPTION
clientOptionsClientopen in new windowdiscord.js' ClientOptions.
optionsDiscommandClientOptionsDiscommandClient'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

PROPERTYTYPEOPTIONALEXAMPLE
directorydirectoryopen in new window{ command: __dirname + '/commands' }
guildIDSnowflakesopen in new windowOyour_guild_id
pluginArray<BasePlugin>open in new windowOnew Plugin()

DiscommandHandler

extends BaseHandleropen in new window

Constructor

new DiscommandHandler(options)
PARAMETERTYPEDESCRIPTION
optionsDiscommandHandlerOptionsDiscommandHandler's options

Properties

.options

Type: DiscommandHandlerOptions

Methods

.loadAll()

Description: Module Load and run

.deloadAll()

Description: Module deload

.reloadAll()

Description: Module reload

DiscommandHandlerOptions

PROPERTYTYPEOPTIONALEXAMPLE
directorystringopen in new window__dirname + '/commands'
guildIDSnowflakesopen in new windowOyour guild id

Command

abstract

extends Baseopen in new window

Constructor

new Command(data)
PARAMETERTYPEDESCRIPTION
dataApplicationCommandDataopen in new windowCommand's data

Properties

.data

Type: ApplicationCommandDataopen in new window

Methods

.toJSON()

Return: ApplicationCommandDataopen in new window

Listener

abstract

extends Baseopen in new window

Constructor

new Listener(name)
PARAMETERTYPEDESCRIPTION
namestringopen in new windowListener's name

Properties

.once

Type: booleanopen in new window