createEvent (src/index.ts)

seyfert · src/index.ts · typescript · MIT
realtime

Factory for defining Discord bot event handlers with typed parameters and execution logic.

// Source: https://github.com/tiramisulabs/seyfert | License: MIT | Copyright 2024 socram03
// Provided via justclaw.it.com; keep this notice with the code.
export * from './client';

import {
	BaseClient,
	type BaseClientOptions,
	type InternalRuntimeConfig,
	type InternalRuntimeConfigHTTP,
	type RuntimeConfig,
	type RuntimeConfigHTTP,
} from './client/base';
import { resolveGatewayIntents } from './client/intents';
import { type Awaitable, isCloudflareWorker } from './common';
import type { ClientNameEvents, CustomEventsKeys, ResolveEventParams } from './events';

//
export * from './api';
export * from './builders';
export * from './cache';
//
export { Collection, LimitedCollection, type LimitedCollectionData } from './collection';
export * from './commands';
export {
	type AssignFilena

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key