Class MessageComponentInteraction<Cached>

Type Parameters

  • Cached extends CacheType = CacheType

Hierarchy

  • BaseInteraction<Cached>
    • MessageComponentInteraction

Constructors

  • Type Parameters

    • Cached extends CacheType = CacheType

    Parameters

    • client: Client<true>
    • data: APIMessageComponentInteraction

    Returns MessageComponentInteraction<Cached>

Properties

appPermissions: CacheTypeReducer<Cached, Readonly<PermissionsBitField>, Readonly<PermissionsBitField>, Readonly<PermissionsBitField>, null | Readonly<PermissionsBitField>>
applicationId: string
channelId: string
client: Client<true>
customId: string
deferred: boolean
ephemeral: null | boolean
guildId: CacheTypeReducer<Cached, string, string, string, null | string>
guildLocale: CacheTypeReducer<Cached, Locale, Locale, Locale, null | Locale>
id: string
locale: Locale
member: CacheTypeReducer<Cached, GuildMember, APIInteractionGuildMember, GuildMember | APIInteractionGuildMember, null | GuildMember | APIInteractionGuildMember>
memberPermissions: CacheTypeReducer<Cached, Readonly<PermissionsBitField>, Readonly<PermissionsBitField>, Readonly<PermissionsBitField>, null | Readonly<PermissionsBitField>>
message: Message<BooleanCache<Cached>>
replied: boolean
token: string
type: MessageComponent
user: User
version: number
webhook: InteractionWebhook

Accessors

  • get channel(): CacheTypeReducer<Cached, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | TextBasedChannel>
  • Returns CacheTypeReducer<Cached, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | TextBasedChannel>

  • get component(): CacheTypeReducer<Cached, MessageActionRowComponent, APIMessageActionRowComponent, MessageActionRowComponent | APIMessageActionRowComponent, MessageActionRowComponent | APIMessageActionRowComponent>
  • Returns CacheTypeReducer<Cached, MessageActionRowComponent, APIMessageActionRowComponent, MessageActionRowComponent | APIMessageActionRowComponent, MessageActionRowComponent | APIMessageActionRowComponent>

  • get createdAt(): Date
  • Returns Date

  • get createdTimestamp(): number
  • Returns number

  • get guild(): CacheTypeReducer<Cached, Guild, null, null | Guild, null | Guild>
  • Returns CacheTypeReducer<Cached, Guild, null, null | Guild, null | Guild>

Methods

  • Parameters

    • options: AwaitModalSubmitOptions<ModalSubmitInteraction<CacheType>>

    Returns Promise<ModalSubmitInteraction<Cached>>

  • Parameters

    • options: InteractionDeferReplyOptions & {
          fetchReply: true;
      }

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • Optional options: InteractionDeferReplyOptions

    Returns Promise<InteractionResponse<BooleanCache<Cached>>>

  • Parameters

    • options: InteractionDeferUpdateOptions & {
          fetchReply: true;
      }

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • Optional options: InteractionDeferUpdateOptions

    Returns Promise<InteractionResponse<BooleanCache<Cached>>>

  • Parameters

    • Optional message: MessageResolvable

    Returns Promise<void>

  • Parameters

    • options: string | MessagePayload | InteractionEditReplyOptions

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • Optional message: string

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • options: string | MessagePayload | InteractionReplyOptions

    Returns Promise<Message<BooleanCache<Cached>>>

  • Returns this is AnySelectMenuInteraction<Cached>

  • Returns this is AutocompleteInteraction<Cached>

  • Returns this is ButtonInteraction<Cached>

  • Returns this is ChannelSelectMenuInteraction<Cached>

  • Returns this is ChatInputCommandInteraction<Cached>

  • Returns this is CommandInteraction<Cached>

  • Returns this is ContextMenuCommandInteraction<Cached>

  • Returns this is MentionableSelectMenuInteraction<Cached>

  • Returns this is MessageContextMenuCommandInteraction<Cached>

  • Returns this is ModalSubmitInteraction<Cached>

  • Returns this is RepliableInteraction<Cached>

  • Returns this is RoleSelectMenuInteraction<Cached>

  • Returns this is StringSelectMenuInteraction<Cached>

    Deprecated

    Use isStringSelectMenu instead.

  • Returns this is StringSelectMenuInteraction<Cached>

  • Returns this is UserContextMenuCommandInteraction<Cached>

  • Returns this is UserSelectMenuInteraction<Cached>

  • Parameters

    • options: InteractionReplyOptions & {
          fetchReply: true;
      }

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • options: string | MessagePayload | InteractionReplyOptions

    Returns Promise<InteractionResponse<BooleanCache<Cached>>>

  • Parameters

    • modal: APIModalInteractionResponseCallbackData | ModalComponentData | JSONEncodable<APIModalInteractionResponseCallbackData>

    Returns Promise<void>

  • Parameters

    • Rest ...props: Record<string, string | boolean>[]

    Returns unknown

  • Parameters

    • options: InteractionUpdateOptions & {
          fetchReply: true;
      }

    Returns Promise<Message<BooleanCache<Cached>>>

  • Parameters

    • options: string | MessagePayload | InteractionUpdateOptions

    Returns Promise<InteractionResponse<BooleanCache<Cached>>>

  • Returns string

Generated using TypeDoc