UNPKG

@sodacore/discord

Version:

Sodacore Discord is a plugin that offers Discord SSO/OAuth2 support and the ability to create bots in a similar controller pattern.

21 lines 940 B
import { APIEmbedField, ButtonInteraction, ChatInputCommandInteraction, ContextMenuCommandInteraction, ModalSubmitInteraction, SelectMenuInteraction } from 'discord.js'; export type IAllowedInteractionType = ChatInputCommandInteraction | ButtonInteraction | SelectMenuInteraction | ContextMenuCommandInteraction | ModalSubmitInteraction; export type IPromptsQuestionOptions = { timeout?: number; description?: string; ephemeral?: boolean; timestamp?: boolean; fields?: APIEmbedField[]; }; export type IPromptsConfirmOptions = IPromptsQuestionOptions & { acceptLabel?: string; rejectLabel?: string; }; export default class PromptsHelper { confirm(interaction: IAllowedInteractionType, question: string, options?: IPromptsConfirmOptions): Promise<boolean>; choice(): Promise<void>; input(): Promise<void>; select(): Promise<void>; modal(): Promise<void>; } //# sourceMappingURL=prompts.d.ts.map