Interface GuildModalSubmitInteraction

interface GuildModalSubmitInteraction {
    acknowledged: boolean;
    appPermissions: Permission;
    application?: ClientApplication;
    applicationID: string;
    channel: AnyTextableGuildChannel;
    channelID: string;
    client: Client<ClientEvents>;
    createdAt: Date;
    data: ModalSubmitInteractionData;
    entitlements: (Entitlement | TestEntitlement)[];
    guild: Guild;
    guildID: string;
    guildLocale: string;
    guildPartial: InteractionGuild;
    id: string;
    locale: string;
    member: Member;
    memberPermissions: Permission;
    message?: Message<AnyTextableGuildChannel>;
    token: string;
    type: MODAL_SUBMIT;
    user: User;
    version: 1;
    createFollowup(options): Promise<FollowupMessageInteractionResponse<ModalSubmitInteraction<AnyTextableGuildChannel>>>;
    createMessage(options): Promise<InitialMessagedInteractionResponse<ModalSubmitInteraction<AnyTextableGuildChannel>>>;
    defer(flags?): Promise<void>;
    deferUpdate(flags?): Promise<void>;
    deleteFollowup(messageID): Promise<void>;
    deleteOriginal(): Promise<void>;
    editFollowup(messageID, options): Promise<Message<AnyTextableGuildChannel>>;
    editOriginal(options): Promise<Message<AnyTextableGuildChannel>>;
    editParent(options): Promise<void>;
    getFollowup(messageID): Promise<Message<AnyTextableGuildChannel>>;
    getOriginal(): Promise<Message<AnyTextableGuildChannel>>;
    inCachedGuildChannel(): this is ModalSubmitInteraction<AnyTextableGuildChannel>;
    inPrivateChannel(): this is ModalSubmitInteraction<PrivateChannel | Uncached>;
    isAutocompleteInteraction(): this is AutocompleteInteraction<Uncached | AnyInteractionChannel>;
    isCommandInteraction(): this is CommandInteraction<Uncached | AnyInteractionChannel, ApplicationCommandTypes>;
    isComponentInteraction(): this is ComponentInteraction<BUTTON | SelectMenuTypes, Uncached | AnyInteractionChannel>;
    isModelSubmitInteraction(): this is ModalSubmitInteraction<Uncached | AnyInteractionChannel>;
    isPingInteraction(): this is PingInteraction;
    premiumRequired(): Promise<void>;
    reply(options): Promise<MessageInteractionResponse<ModalSubmitInteraction<AnyTextableGuildChannel>>>;
    toJSON(): JSONModalSubmitInteraction;
    toString(): string;
}

Hierarchy (view full)

Properties

acknowledged: boolean

If this interaction has been acknowledged.

appPermissions: Permission
application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

channelID: string

The ID of the channel this interaction was sent from.

createdAt: Date

The data associated with the interaction.

entitlements: (Entitlement | TestEntitlement)[]

The entitlements for the user that created this interaction, and the guild it was created in.

guild: Guild
guildID: string
guildLocale: string
guildPartial: InteractionGuild
id: string
locale: string

The locale of the invoking user.

member: Member
memberPermissions: Permission

The message this interaction is from, if the modal was triggered from a component interaction.

token: string

The token of this interaction.

user: User

The user that invoked this interaction.

version: 1

Read-only property, always 1

Methods

  • Defer this interaction with a DEFERRED_UPDATE_MESSAGE response. This is an initial response, and more than one initial response cannot be used.

    Parameters

    • Optional flags: number

      The flags to respond with.

    Returns Promise<void>