createBot
Documentation / @discordeno/bot / createBot
Function: createBot()
Call Signature
createBot<
TProps
,TBehavior
>(options
):Bot
<TProps
,TBehavior
>
Defined in: packages/bot/src/bot.ts:27
Create a bot object that will maintain the rest and gateway connection.
Type Parameters
• TProps extends TransformersDesiredProperties
• 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: packages/bot/src/bot.ts:31
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