seyfert
    Preparing search index...

    Class ChatInputCommandInteraction<FromGuild>

    Type Parameters

    • FromGuild extends boolean = boolean

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    applicationId: string
    appPermissions: PermissionsBitField
    attachmentSizeLimit: number
    authorizingIntegrationOwners: { "0"?: string; "1"?: string }
    channel: AllChannels
    client: UsingClient
    context?: InteractionContextType
    data: {
        guildId?: string;
        id: string;
        name: string;
        options?: (
            | {
                name: string;
                options?: (
                    | { name: string; type: Attachment; value: string }
                    | { name: string; type: Boolean; value: boolean }
                    | { name: string; type: Channel; value: string }
                    | { focused?: boolean; name: string; type: Integer; value: number }
                    | { name: string; type: Mentionable; value: string }
                    | { focused?: boolean; name: string; type: Number; value: number }
                    | { name: string; type: Role; value: string }
                    | { focused?: boolean; name: string; type: String; value: string }
                    | { name: string; type: User; value: string }
                )[];
                type: Subcommand;
            }
            | { name: string; type: Attachment; value: string }
            | { name: string; type: Boolean; value: boolean }
            | { name: string; type: Channel; value: string }
            | { focused?: boolean; name: string; type: Integer; value: number }
            | { name: string; type: Mentionable; value: string }
            | { focused?: boolean; name: string; type: Number; value: number }
            | { name: string; type: Role; value: string }
            | { focused?: boolean; name: string; type: String; value: string }
            | { name: string; type: User; value: string }
            | {
                name: string;
                options: {
                    name: string;
                    options?: (
                        | { name: ...; type: ...; value: ... }
                        | { name: ...; type: ...; value: ... }
                        | { name: ...; type: ...; value: ... }
                        | { focused?: ...; name: ...; type: ...; value: ... }
                        | { name: ...; type: ...; value: ... }
                        | { focused?: ...; name: ...; type: ...; value: ... }
                        | { name: ...; type: ...; value: ... }
                        | { focused?: ...; name: ...; type: ...; value: ... }
                        | { name: ...; type: ...; value: ... }
                    )[];
                    type: Subcommand;
                }[];
                type: SubcommandGroup;
            }
        )[];
        resolved?: {
            attachments?: Record<string, APIAttachment>;
            channels?: Record<string, APIInteractionDataResolvedChannel>;
            members?: Record<string, APIInteractionDataResolvedGuildMember>;
            roles?: Record<string, APIRole>;
            users?: Record<string, APIUser>;
        };
        type: ChatInput;
    }
    entitlements: Entitlement[]
    guild?: { features: GuildFeature[]; id: string; locale: Locale }
    guildId?: string
    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"
    id: string
    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"
    member: When<FromGuild, InteractionGuildMember, undefined>
    message?: Message
    replied?:
        | boolean
        | Promise<undefined | boolean | RESTPostAPIInteractionCallbackResult>
    token: string
    type: ApplicationCommandType
    user: User
    version: 1

    Accessors

    • get createdAt(): Date

      createdAt gets the creation Date instace of the current object.

      Returns Date

    • get createdTimestamp(): number

      Create a timestamp for the current object.

      Returns number

    Methods

    • Type Parameters

      • FR extends boolean = false

      Parameters

      • body: Omit<
            APIInteractionResponseCallbackData,
            "components"
            | "content"
            | "embeds"
            | "poll",
        > & SendResolverProps
      • OptionalfetchReply: FR

      Returns Promise<When<FR, WebhookMessage, void>>

    • Parameters

      • body: Omit<
            RESTPostAPIWebhookWithTokenJSONBody,
            "components"
            | "content"
            | "embeds"
            | "poll",
        > & SendResolverProps

      Returns Promise<WebhookMessage>

    • Parameters

      • data:
            | APIInteractionResponseChannelMessageWithSource
            | APIInteractionResponseDeferredChannelMessageWithSource
            | APIInteractionResponseDeferredMessageUpdate
            | APIInteractionResponseUpdateMessage

      Returns Promise<undefined>

    • Type Parameters

      • FR extends boolean = false

      Parameters

      • body: Omit<
            APIInteractionResponseCallbackData,
            "components"
            | "content"
            | "embeds"
            | "poll",
        > & SendResolverProps
      • OptionalwithResponse: FR

      Returns Promise<When<FR, WebhookMessage, void>>

    • Type Parameters

      • T

      Parameters

      • body:
            | Omit<
                RESTPostAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
            | Omit<
                APIInteractionResponseCallbackData,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
            | InteractionMessageUpdateBodyRequest
            | Omit<
                RESTPatchAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds",
            > & ResolverProps
            | Omit<
                RESTPostAPIWebhookWithTokenJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
      • files: undefined | RawFile[]
      • self: UsingClient

      Returns T