19 lines
371 B
TypeScript
19 lines
371 B
TypeScript
import type {
|
|
CommandInteraction,
|
|
ComponentInteraction,
|
|
} from "../../internal/interaction"
|
|
|
|
export type Adapter<CommandReplyInit> = {
|
|
/**
|
|
* @internal
|
|
*/
|
|
addComponentInteractionListener(
|
|
listener: (interaction: ComponentInteraction) => void,
|
|
): void
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
createCommandInteraction(init: CommandReplyInit): CommandInteraction
|
|
}
|