Bot

Vocality DocumentationGlobalsBot

Hierarchy

  • Bot

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Bot(options?: ClientOptions | undefined): Bot

Defined in packages/vocality-core/src/bot.ts:11

Creates a new instance.

Parameters:

NameType
options?ClientOptions | undefined

Returns: Bot

Properties

Private bot

bot: BotClient

Defined in packages/vocality-core/src/bot.ts:11

Methods

addCustomCommands

addCustomCommands(commands: Command[]): void

Defined in packages/vocality-core/src/bot.ts:26

Add a custom command to the bot which will be enabled for all guilds. Commands added this way will not belong to any plugin.

Parameters:

NameType
commandsCommand[]

Returns: void


addPlugins

addPlugins(plugins: Plugin[], loaded?: undefined | false | true): void

Defined in packages/vocality-core/src/bot.ts:44

Adds plugins to all guilds.

Parameters:

NameType
pluginsPlugin[]
loaded?undefined | false | true

Returns: void


removeCustomCommand

removeCustomCommand(command: Command | string): void

Defined in packages/vocality-core/src/bot.ts:35

Remove a custom command from all guilds.

Parameters:

NameTypeDescription
commandCommand | stringInstance or name of the command

Returns: void


start

start(token?: undefined | string): Promise‹void›

Defined in packages/vocality-core/src/bot.ts:56

Start the bot.

Parameters:

NameType
token?undefined | string

Returns: Promise‹void›