seyfert
    Preparing search index...

    Class UserCommandInteraction<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;
        resolved: {
            members?: {
                [key: Lowercase<string>]: {
                    avatar?: null | string;
                    avatarDecorationData?: null | { asset: string; skuId: string };
                    banner: null | string;
                    communicationDisabledUntil?: null | string;
                    flags: GuildMemberFlags;
                    joinedAt: string;
                    nick?: null | string;
                    pending?: boolean;
                    permissions: string;
                    premiumSince?: null | string;
                    roles: string[];
                };
            };
            users: {
                [key: Lowercase<string>]: {
                    accentColor?: null | number;
                    avatar: null | string;
                    avatarDecorationData?: null | { asset: string; skuId: string };
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
            };
        };
        targetId: string;
        type: User;
    }
    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: User
    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