@typed-discord/interactions
    Preparing search index...

    Interface MessageCommandInteraction

    interface MessageCommandInteraction {
        app_permissions: string;
        application_id: `${bigint}`;
        attachment_size_limit: number;
        authorizing_integration_owners?: {
            "0"?: `${bigint}`;
            "1"?: `${bigint}`;
            "2"?: `${bigint}`;
        };
        channel_id: `${bigint}`;
        data: {
            guild_id?: `${bigint}`;
            name: string;
            resolved: { messages: { [message_id: `${bigint}`]: MessageResponse } };
            target_id: `${bigint}`;
            type: MESSAGE;
        };
        entitlements?: EntitlementResponse[];
        id: `${bigint}`;
        locale: AvailableLocalesEnum;
        message?: MessageResponse;
        token: string;
        type: APPLICATION_COMMAND;
    }

    Hierarchy

    • BaseInteraction
      • MessageCommandInteraction
    Index

    Properties

    app_permissions: string

    Bitwise set of permissions the app has in the source location of the interaction.

    application_id: `${bigint}`

    ID of the application this interaction is for.

    attachment_size_limit: number

    MessageAttachmentResponse size limit in bytes.

    authorizing_integration_owners?: {
        "0"?: `${bigint}`;
        "1"?: `${bigint}`;
        "2"?: `${bigint}`;
    }

    Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.

    Type Declaration

    • Optional0?: `${bigint}`

      This command can be used within a Guild.

    • Optional1?: `${bigint}`

      This command can be used within a DM with this application's bot.

    • Optional2?: `${bigint}`

      This command can be used within DMs and Group DMs with users.

    channel_id: `${bigint}`

    Channel that the interaction was sent from.

    data: {
        guild_id?: `${bigint}`;
        name: string;
        resolved: { messages: { [message_id: `${bigint}`]: MessageResponse } };
        target_id: `${bigint}`;
        type: MESSAGE;
    }

    Type Declaration

    • Optionalguild_id?: `${bigint}`

      ID of the guild the command is registered to.

    • name: string

      Name of the invoked command.

    • resolved: { messages: { [message_id: `${bigint}`]: MessageResponse } }

      Resolved messages for the target message.

    • target_id: `${bigint}`

      ID of the message targeted by the message command.

    • type: MESSAGE

      Message application command type.

    entitlements?: EntitlementResponse[]

    For monetized apps, any entitlements for the invoking user, representing access to premium SKUs.

    id: `${bigint}`

    ID of the interaction.

    locale: AvailableLocalesEnum

    Selected language of the invoking user.

    message?: MessageResponse

    For components or modals triggered by components, the message they were attached to.

    token: string

    Continuation token for responding to the interaction.

    type: APPLICATION_COMMAND

    Type of interaction.