export class ModalSubmitFields<Cached extends CacheType = CacheType>
Represents the serialized fields from a modal submit interaction
(ActionRowModalData | LabelModalData | TextDisplayModalData)[] components :
The components within the modal
Collection<string, ModalData> fields :
The extracted fields from the modal
Readonly<BaseInteractionResolvedData<Cached>> | null resolved :
The interaction resolved data
getFieldType extends ComponentType
>(customId: stringtype: Type) : Extract<ModalData, { type: Type }> <
Type extends ComponentType
Gets a field given a custom id from a component
getSelectedChannelsType? extends ChannelType = ChannelType
>() : ReadonlyCollection<Snowflake, Extract<NonNullable<CommandInteractionOption<Cached>['channel']>, { type: Type extends ChannelType.AnnouncementThread | ChannelType.PublicThread ? ChannelType.AnnouncementThread | ChannelType.PublicThread : Type; }>> <
Type? extends ChannelType = ChannelType
Gets channels component
Returns: The selected channels, or null if none were selected and not required
getSelectedMemberscustomId: string) : NonNullable<SelectMenuModalData<Cached>['members']> | null (
Gets members component
Returns: The selected members, or null if none were selected or the users were not present in the guild
getSelectedMentionablescustomId: stringrequired: true = false) : ModalSelectedMentionables<Cached> (
Gets mentionables component
Returns: The selected mentionables, or null if none were selected and not required
getSelectedRolescustomId: stringrequired: true = false) : NonNullable<SelectMenuModalData<Cached>['roles']> (
Gets roles component
Returns: The selected roles, or null if none were selected and not required
getSelectedUserscustomId: stringrequired: true = false) : ReadonlyCollection<Snowflake, User> (
Gets users component
Returns: The selected users, or null if none were selected and not required
Gets the values of a string select component given a custom id