createBot
@discordeno/bot • Docs
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