all repos — stealth-developers @ c44d4e7df8b225bf9d3c614395ffc7870cd96075

apps/bot/src/lib/registries.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
import type {
	ButtonInteraction,
	ModalSubmitInteraction,
	AnySelectMenuInteraction,
} from "discord.js";
import { ComponentRegistry } from "./structures/ComponentRegistry";

export const buttonRegistry = new ComponentRegistry<ButtonInteraction>();
export const modalRegistry = new ComponentRegistry<ModalSubmitInteraction>();
export const selectMenuRegistry = new ComponentRegistry<AnySelectMenuInteraction>();