Skip to main content

createBot

@discordeno/botDocs


Documentation / @discordeno/bot / createBot

Function: createBot()

createBot<TProps, TBehavior>(options): Bot<CompleteDesiredProperties<TProps>, TBehavior>

Create a bot object that will maintain the rest and gateway connection.

Type Parameters

TProps extends object

TBehavior extends DesiredPropertiesBehavior = RemoveKey

Parameters

options: CreateBotOptions<TProps, TBehavior>

Configurations options used to manage this bot.

Returns

Bot<CompleteDesiredProperties<TProps>, TBehavior>

Bot

Defined in

packages/bot/src/bot.ts:25