16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
import type { CommandInteraction, ComponentInteraction } from "../interaction"
|
|
|
|
export type Adapter<InteractionInit> = {
|
|
/**
|
|
* @internal
|
|
*/
|
|
addComponentInteractionListener(
|
|
listener: (interaction: ComponentInteraction) => void,
|
|
): void
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
createCommandInteraction(interactionInfo: InteractionInit): CommandInteraction
|
|
}
|