Interface PrivateCommandInteraction

interface PrivateCommandInteraction {
    acknowledged: boolean;
    appPermissions: Permission;
    application?: ClientApplication;
    applicationID: string;
    authorizingIntegrationOwners: AuthorizingIntegrationOwners;
    channel: undefined | AnyPrivateChannel;
    channelID: string;
    client: Client<ClientEvents>;
    context?: InteractionContextTypes;
    createdAt: Date;
    data: ApplicationCommandInteractionData<Uncached | AnyPrivateChannel, ApplicationCommandTypes>;
    entitlements: (Entitlement | TestEntitlement)[];
    guild: undefined;
    guildID: undefined;
    guildLocale: undefined;
    guildPartial: undefined;
    id: string;
    locale: string;
    member: undefined;
    memberPermissions: undefined;
    token: string;
    type: APPLICATION_COMMAND;
    user: User;
    version: 1;
    createFollowup(options): Promise<FollowupMessageInteractionResponse<CommandInteraction<Uncached | AnyPrivateChannel, ApplicationCommandTypes>>>;
    createMessage(options): Promise<InitialMessagedInteractionResponse<CommandInteraction<Uncached | AnyPrivateChannel, ApplicationCommandTypes>>>;
    createModal(options): Promise<void>;
    defer(flags?): Promise<void>;
    deleteFollowup(messageID): Promise<void>;
    deleteOriginal(): Promise<void>;
    editFollowup(messageID, options): Promise<Message<Uncached | AnyPrivateChannel>>;
    editOriginal(options): Promise<Message<Uncached | AnyPrivateChannel>>;
    getFollowup(messageID): Promise<Message<Uncached | AnyPrivateChannel>>;
    getOriginal(): Promise<Message<Uncached | AnyPrivateChannel>>;
    inCachedGuildChannel(): this is CommandInteraction<AnyTextableGuildChannel, ApplicationCommandTypes>;
    inPrivateChannel(): this is CommandInteraction<PrivateChannel | Uncached, ApplicationCommandTypes>;
    isAutocompleteInteraction(): this is AutocompleteInteraction<Uncached | AnyInteractionChannel>;
    isChatInputCommand(): this is CommandInteraction<Uncached | AnyPrivateChannel, CHAT_INPUT>;
    isCommandInteraction(): this is CommandInteraction<Uncached | AnyInteractionChannel, ApplicationCommandTypes>;
    isComponentInteraction(): this is ComponentInteraction<BUTTON | SelectMenuTypes, Uncached | AnyInteractionChannel>;
    isMessageCommand(): this is CommandInteraction<Uncached | AnyPrivateChannel, MESSAGE>;
    isModalSubmitInteraction(): this is ModalSubmitInteraction<Uncached | AnyInteractionChannel>;
    isPingInteraction(): this is PingInteraction;
    isUserCommand(): this is CommandInteraction<Uncached | AnyPrivateChannel, USER>;
    premiumRequired(): Promise<void>;
    reply(options): Promise<MessageInteractionResponse<CommandInteraction<Uncached | AnyPrivateChannel, ApplicationCommandTypes>>>;
    toJSON(): JSONCommandInteraction;
    toString(): string;
}

Hierarchy (view full)

Properties

acknowledged: boolean

If this interaction has been acknowledged.

appPermissions: Permission

The permissions the bot has in the channel this interaction was sent from. If in a dm/group dm, this will contain ATTACH_FILES, EMBED_LINKS, and MENTION_EVERYONE. In addition, USE_EXTERNAL_EMOJIS will be included for DMs with the app's bot user.

application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

authorizingIntegrationOwners: AuthorizingIntegrationOwners

Details about the authorizing user or server for the installation(s) relevant to the interaction. See Discord's docs for more information.

channel: undefined | AnyPrivateChannel
channelID: string

The ID of the channel this interaction was sent from.

The context 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: undefined
guildID: undefined
guildLocale: undefined
guildPartial: undefined
id: string
locale: string

The locale of the invoking user.

member: undefined
memberPermissions: undefined
token: string

The token of this interaction.

user: User

The user that invoked this interaction.

version: 1

Read-only property, always 1

Methods

  • Respond to this interaction with a modal. This is an initial response, and more than one initial response cannot be used.

    Parameters

    • options: ModalData

      The options for the modal.

    Returns Promise<void>