Skip to content

AutocompleteInteraction

Extends

  • ObjectToLower<Omit<APIApplicationCommandAutocompleteInteraction, | "user" | "member" | "type" | "data" | "message" | "channel" | "app_permissions">>.BaseInteraction<FromGuild, APIApplicationCommandAutocompleteInteraction>

Type parameters

Type parameterValue
FromGuild extends booleanboolean

Constructors

new AutocompleteInteraction(client, interaction, __reply)

1
new AutocompleteInteraction<FromGuild>(
2
client: UsingClient,
3
interaction: APIApplicationCommandAutocompleteInteraction,
4
__reply?: __InternalReplyFunction): AutocompleteInteraction<FromGuild>

Parameters

ParameterType
clientUsingClient
interactionAPIApplicationCommandAutocompleteInteraction
__reply?__InternalReplyFunction

Returns

AutocompleteInteraction<FromGuild>

Inherited from

BaseInteraction.constructor

Source

seyfert/src/structures/Interaction.ts:299

Properties

PropertyModifierTypeInherited from
appPermissions?publicPermissionsBitFieldBaseInteraction.appPermissions
applicationIdpublicstringBaseInteraction.applicationId
channel?publicAllChannelsBaseInteraction.channel
channelIdpublicundefined | stringBaseInteraction.channelId
clientreadonlyUsingClientBaseInteraction.client
datapublicObjectBaseInteraction.data
data.guildIdpublicundefined | string-
data.idpublicstring-
data.namepublicstring-
data.optionspublic( | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object)[]-
data.resolvedpublicundefined | Object-
data.typepublicChatInput-
entitlementspublicObject[]BaseInteraction.entitlements
guildIdpublicundefined | stringBaseInteraction.guildId
guildLocalepublic| undefined | "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"BaseInteraction.guildLocale
idpublicstringBaseInteraction.id
localepublic| "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"BaseInteraction.locale
memberpublicWhen<FromGuild, InteractionGuildMember, undefined>BaseInteraction.member
message?publicMessageBaseInteraction.message
optionspublicOptionResolver-
replied?publicboolean | Promise<boolean>BaseInteraction.replied
tokenpublicstringBaseInteraction.token
typepublicApplicationCommandAutocomplete-
userpublicUserBaseInteraction.user
versionpublic1BaseInteraction.version

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20

Methods

deferReply()

1
deferReply(flags?: MessageFlags): Promise<void>

Parameters

ParameterType
flags?MessageFlags

Returns

Promise<void>

Inherited from

BaseInteraction.deferReply

Source

seyfert/src/structures/Interaction.ts:207


fetchGuild()

1
fetchGuild(force: boolean): undefined | Promise<Guild<"cached"> | Guild<"api">>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

undefined | Promise<Guild<"cached"> | Guild<"api">>

Inherited from

BaseInteraction.fetchGuild

Source

seyfert/src/structures/Interaction.ts:269


getInput()

1
getInput(): string

Returns

string

Source

seyfert/src/structures/Interaction.ts:314


reply()

1
reply(..._args: unknown[]): Promise<void>

Parameters

ParameterType
_argsunknown[]

Returns

Promise<void>

Inherited from

BaseInteraction.reply

Intenal

Source

seyfert/src/structures/Interaction.ts:323


respond()

1
respond(choices: undefined | APIApplicationCommandOptionChoice<string | number>[]): Promise<void>

Parameters

ParameterType
choicesundefined | APIApplicationCommandOptionChoice<string | number>[]

Returns

Promise<void>

Source

seyfert/src/structures/Interaction.ts:318


from()

1
static from(
2
client: UsingClient,
3
gateway: APIInteraction,
4
__reply?: __InternalReplyFunction):
5
| RoleSelectMenuInteraction
6
| UserSelectMenuInteraction
7
| MentionableSelectMenuInteraction
8
| ChannelSelectMenuInteraction
9
| StringSelectMenuInteraction<string[]>
10
| AutocompleteInteraction<boolean>
11
| ChatInputCommandInteraction<boolean>
12
| UserCommandInteraction<boolean>
13
| MessageCommandInteraction<boolean>
14
| ButtonInteraction
15
| ModalSubmitInteraction<boolean>
16
| BaseInteraction<boolean, APIPingInteraction>

Parameters

ParameterType
clientUsingClient
gatewayAPIInteraction
__reply?__InternalReplyFunction

Returns

| RoleSelectMenuInteraction | UserSelectMenuInteraction | MentionableSelectMenuInteraction | ChannelSelectMenuInteraction | StringSelectMenuInteraction<string[]> | AutocompleteInteraction<boolean> | ChatInputCommandInteraction<boolean> | UserCommandInteraction<boolean> | MessageCommandInteraction<boolean> | ButtonInteraction | ModalSubmitInteraction<boolean> | BaseInteraction<boolean, APIPingInteraction>

Inherited from

BaseInteraction.from

Source

seyfert/src/structures/Interaction.ts:216


transformBody()

1
static transformBody<T>(body: Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps | Omit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps | Omit<RESTPostAPIWebhookWithTokenJSONBody, "components" | "embeds" | "poll"> & SendResolverProps | Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps, self: UsingClient): T

Type parameters

Type parameter
T

Parameters

ParameterType
bodyOmit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps | Omit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps | Omit<RESTPostAPIWebhookWithTokenJSONBody, "components" | "embeds" | "poll"> & SendResolverProps | Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps
selfUsingClient

Returns

T

Inherited from

BaseInteraction.transformBody

Source

seyfert/src/structures/Interaction.ts:164


transformBodyRequest()

1
static transformBodyRequest(body: ReplyInteractionBody, self: BaseClient): APIInteractionResponse

Parameters

ParameterType
bodyReplyInteractionBody
selfBaseClient

Returns

APIInteractionResponse

Inherited from

BaseInteraction.transformBodyRequest

Source

seyfert/src/structures/Interaction.ts:118