createBot
Documentation / @discordeno/bot / createBot
Function: createBot()
Call Signature
createBot<
TProps,TBehavior>(options):Bot<TProps,TBehavior>
Defined in: bot/src/bot.ts:27
Create a bot object that will maintain the rest and gateway connection.
Type Parameters
TProps
TProps extends TransformersDesiredProperties
TBehavior
TBehavior extends DesiredPropertiesBehavior = RemoveKey
Parameters
options
CreateBotOptions<TProps, TBehavior>
Configurations options used to manage this bot.
Returns
Bot<TProps, TBehavior>
Bot
Call Signature
createBot<
TProps,TBehavior>(options):Bot<CompleteDesiredProperties<TProps>,TBehavior>
Defined in: bot/src/bot.ts:31
Create a bot object that will maintain the rest and gateway connection.
Type Parameters
TProps
TProps extends object
TBehavior
TBehavior extends DesiredPropertiesBehavior = RemoveKey
Parameters
options
CreateBotOptions<TProps, TBehavior>
Configurations options used to manage this bot.
Returns
Bot<CompleteDesiredProperties<TProps>, TBehavior>
Bot