import { InteractionReplyOptions } from "discord.js"; export class HaltExecution extends Error { constructor(public replyPayload?: string | InteractionReplyOptions) { super("execution halted by middleware."); this.name = "HaltExecution"; } } export class CustomIdTooLong extends Error { constructor(componentName: string, length: number) { super( `custom ID for component "${componentName}" is too long (${length} characters). discord limits custom IDs to 100 characters.`, ); } }