ModalSubmitInteraction

Signature

@Mixins(Interaction)export declare class ModalSubmitInteraction<FromGuild extends boolean = boolean> extends BaseInteraction<FromGuild>

Properties

get components(): {    type: ComponentType.Label;    id?: number | undefined;    component?: {        type: ComponentType.FileUpload;        values: string[];        id?: number | undefined;        customId: string;    } | {        type: ComponentType.RadioGroup;        value: string;        id?: number | undefined;        customId: string;    } | {        type: ComponentType.CheckboxGroup;        values: string[];        id?: number | undefined;        customId: string;    } | {        type: ComponentType.Checkbox;        value: boolean;        id?: number | undefined;        customId: string;    } | {        type: ComponentType.TextInput;        value: string;        id?: number | undefined;        customId: string;    } | {        type: ComponentType.StringSelect | ComponentType.UserSelect | ComponentType.RoleSelect | ComponentType.MentionableSelect | ComponentType.ChannelSelect;        values: string[];        id?: number | undefined;        customId: string;    } | undefined;}[];
protected __reply?: __InternalReplyFunction | undefined;
get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

locale: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi';
guildLocale?: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi' | undefined;

Methods

getRadioValues(customId: string, required: true): string;getRadioValues(customId: string, required?: false): string | void;
getCheckboxValues(customId: string, required: true): string[];getCheckboxValues(customId: string, required?: false): string[] | void;

For checkbox groups.

getCheckbox(customId: string, required: true): boolean;getCheckbox(customId: string, required?: false): boolean | void;
getInputValue(customId: string, required: true): string | string[];getInputValue(customId: string, required?: false): string | string[] | undefined;