Client

The client class is the main entry point.

Constructor

new <Threecommands>.Client(options, discordOptions);
(Object) options - These are the main settings the client will use.

{ (String) prefix - The prefix of your bot. (String) token - The token used to log into Discord. (String) commandDir - The directory the framework will look for, containing your command files. (String) eventDir - The directory the framework will look for, containing your event files. }

(Object) discordOptions - These are passed directly into the discord.js client, as you would if you're making a bot normally.
Fields: View discord.js documentation

Properties

(Discord.Client) bot - The discord.js client created. This is logged in for you when the bot is instantiated.
(Object) config - The options passed on creation.
(String) prefix - The prefix of the bot.
(Discord.Collection) commands - A collection of all commands in the bot, read from the command directory.
(Discord.Collection) eventHandlers - A collection of all events in the bot, read from the event directory.

results matching ""

    No results matching ""