Options for launching the CommandHandler.

interface LaunchCommandHandlerOptions {
    addBotAndTeamOwnersToOwners?: boolean;
    clientOptions: ClientOptions;
    cycleBetweenPresences?: boolean;
    cycleDuration?: number;
    presence?: PresenceData;
    presences?: PresenceData[];
    token: string;
}

Properties

addBotAndTeamOwnersToOwners?: boolean

Whether to add the bot owner or the team members (if bot is from a team) to the owners.

Default Value

true
clientOptions: ClientOptions

The client options, see ClientOptions.

cycleBetweenPresences?: boolean

If set to true, it will cycle between the presences.

Default Value

true
cycleDuration?: number

The duration in seconds between the cycle of two presences of presences.

Default Value

60
presence?: PresenceData

The presence of your bot when launched.

Remarks

If presences is also set, it will overcome this property.

presences?: PresenceData[]

The presences of your bot, if this field is used it will cycle between all if cycleBetweenPresences options is set to true.

Remarks

If presence is also set, it will still cycle between presences.

token: string

The token of your bot.

Generated using TypeDoc