Skip to content

DiscordCloudflareWorkerOptions

Defined in: packages/platform-discord-alchemy/src/worker.ts:42

readonly optional cache?: Namespace | Effect<Namespace, never, any>

Defined in: packages/platform-discord-alchemy/src/worker.ts:46


readonly optional clientLayer?: Layer<DiscordWorkerClient, never, CloudflareBindings>

Defined in: packages/platform-discord-alchemy/src/worker.ts:53

Override how the client is built from the bound D1/KV resources.


readonly optional commands?: readonly WorkerCommand[]

Defined in: packages/platform-discord-alchemy/src/worker.ts:51

Defaults to a D1-backed DiscordWorkerClient with these commands.


readonly optional compatibility?: object

Defined in: packages/platform-discord-alchemy/src/worker.ts:61

readonly optional date?: string

readonly optional flags?: readonly string[]


readonly database: Database | Effect<Database, never, any>

Defined in: packages/platform-discord-alchemy/src/worker.ts:45


readonly env: DiscordCloudflareBindings

Defined in: packages/platform-discord-alchemy/src/worker.ts:60


readonly main: string

Defined in: packages/platform-discord-alchemy/src/worker.ts:44

Usually import.meta.url from the file exporting this Worker.