Skip to content

Bot

Bot = object

Defined in: bot.ts:73

The Worker handler from bot.

answer: (interaction, ctx) => Promise<Response>

Defined in: bot.ts:84

APIInteraction

AnswerContext

Promise<Response>


commands: (Command | ContextMenu)[]

Defined in: bot.ts:74


fetch: (request, env, ctx) => Promise<Response>

Defined in: bot.ts:75

Request

object & Record<string, unknown>

ExecutionContext

Promise<Response>


scheduled: (controller, env) => Promise<void>

Defined in: bot.ts:80

ScheduledController

object & Record<string, unknown>

Promise<void>