@sern/handler
Version:
A complete, customizable, typesafe, & reactive framework for discord bots.
16 lines (15 loc) • 585 B
TypeScript
import { type Interaction } from 'discord.js';
import { CommandType, EventType } from './structures/enums';
/**
* Construct unique ID for a given interaction object.
* @param event The interaction object for which to create an ID.
* @returns An array of unique string IDs based on the type and properties of the interaction object.
*/
export declare function reconstruct<T extends Interaction>(event: T): ({
id: string;
params?: undefined;
} | {
id: string;
params: string;
})[];
export declare function create(name: string, type: CommandType | EventType): string;