Files
reacord/library/adapter/adapter.ts
2021-12-26 12:06:06 -06:00

10 lines
309 B
TypeScript

import type { CommandInteraction, ComponentInteraction } from "../interaction"
export type Adapter<InteractionInit> = {
addComponentInteractionListener(
listener: (interaction: ComponentInteraction) => void,
): void
createCommandInteraction(interactionInfo: InteractionInit): CommandInteraction
}