DiscordCloudflareWorkerOptions
Defined in: packages/platform-discord-alchemy/src/worker.ts:42
Properties
Section titled “Properties”cache?
Section titled “cache?”
readonlyoptionalcache?:Namespace|Effect<Namespace,never,any>
Defined in: packages/platform-discord-alchemy/src/worker.ts:46
clientLayer?
Section titled “clientLayer?”
readonlyoptionalclientLayer?: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.
commands?
Section titled “commands?”
readonlyoptionalcommands?: readonlyWorkerCommand[]
Defined in: packages/platform-discord-alchemy/src/worker.ts:51
Defaults to a D1-backed DiscordWorkerClient with these commands.
compatibility?
Section titled “compatibility?”
readonlyoptionalcompatibility?:object
Defined in: packages/platform-discord-alchemy/src/worker.ts:61
readonlyoptionaldate?:string
flags?
Section titled “flags?”
readonlyoptionalflags?: readonlystring[]
database
Section titled “database”
readonlydatabase:Database|Effect<Database,never,any>
Defined in: packages/platform-discord-alchemy/src/worker.ts:45
readonlyenv:DiscordCloudflareBindings
Defined in: packages/platform-discord-alchemy/src/worker.ts:60
readonlymain:string
Defined in: packages/platform-discord-alchemy/src/worker.ts:44
Usually import.meta.url from the file exporting this Worker.