Skip to content

Worker

Worker(id, options): Effect<Pipeable & ResourceLike<"Cloudflare.Worker", WorkerProps<any, WorkerAssetsConfig | undefined>, { accountId: string; affinityZoneIds?: string[]; crons: string[]; deploymentId?: string; domain: { aliases: string[]; name: string; previews?: boolean; redirects: string[]; zone?: Reference; } | undefined; durableObjectNamespaces: Record<string, string>; hash?: { additionalWorkspaces: string[] | undefined; assets: string | undefined; bundle: string | undefined; input: string | undefined; metadata?: string; }; logpush: boolean | undefined; namespace: string | undefined; previewDoClasses?: string[]; previewId?: string; previewName?: string; previewOf?: string; previewSlug?: string; routes: object[]; secretNames?: string[]; streamingTailConsumers?: object[]; tags: string[] | undefined; tailConsumers?: object[]; url: string | undefined; urls: string[]; versionAlias?: string; versionId?: string; versionOf?: string; workerId: string; workerName: string; }, { bindings?: WorkerBinding[]; cache?: WorkerCache; containers?: object[]; crons?: string[]; devRemote?: Record<string, boolean>; env?: Record<string, any>; hyperdrives?: Record<string, Required<DevOrigin>>; observability?: { logs?: Partial<PutScriptObservabilityLogs>; traces?: Partial<PutScriptObservabilityTraces>; }; }, Providers, WorkerLookup> & object & object & Rpc<{ fetch: Effect<HttpServerResponse, never, never>; }>, never, Providers> & Named<string> & PlatformIdentity<string>

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

string

DiscordCloudflareWorkerOptions

Effect<Pipeable & ResourceLike<"Cloudflare.Worker", WorkerProps<any, WorkerAssetsConfig | undefined>, { accountId: string; affinityZoneIds?: string[]; crons: string[]; deploymentId?: string; domain: { aliases: string[]; name: string; previews?: boolean; redirects: string[]; zone?: Reference; } | undefined; durableObjectNamespaces: Record<string, string>; hash?: { additionalWorkspaces: string[] | undefined; assets: string | undefined; bundle: string | undefined; input: string | undefined; metadata?: string; }; logpush: boolean | undefined; namespace: string | undefined; previewDoClasses?: string[]; previewId?: string; previewName?: string; previewOf?: string; previewSlug?: string; routes: object[]; secretNames?: string[]; streamingTailConsumers?: object[]; tags: string[] | undefined; tailConsumers?: object[]; url: string | undefined; urls: string[]; versionAlias?: string; versionId?: string; versionOf?: string; workerId: string; workerName: string; }, { bindings?: WorkerBinding[]; cache?: WorkerCache; containers?: object[]; crons?: string[]; devRemote?: Record<string, boolean>; env?: Record<string, any>; hyperdrives?: Record<string, Required<DevOrigin>>; observability?: { logs?: Partial<PutScriptObservabilityLogs>; traces?: Partial<PutScriptObservabilityTraces>; }; }, Providers, WorkerLookup> & object & object & Rpc<{ fetch: Effect<HttpServerResponse, never, never>; }>, never, Providers> & Named<string> & PlatformIdentity<string>