AutocompleteInteraction
Extends
ObjectToLower
<Omit
<APIApplicationCommandAutocompleteInteraction
, |"user"
|"member"
|"type"
|"data"
|"message"
|"channel"
|"app_permissions"
>>.BaseInteraction
<FromGuild
,APIApplicationCommandAutocompleteInteraction
>
Type parameters
Type parameter | Value |
---|---|
FromGuild extends boolean | boolean |
Constructors
new AutocompleteInteraction(client, interaction, __reply)
1new AutocompleteInteraction<FromGuild>(2 client: UsingClient,3 interaction: APIApplicationCommandAutocompleteInteraction,4__reply?: __InternalReplyFunction): AutocompleteInteraction<FromGuild>
Parameters
Parameter | Type |
---|---|
client | UsingClient |
interaction | APIApplicationCommandAutocompleteInteraction |
__reply ? | __InternalReplyFunction |
Returns
AutocompleteInteraction
<FromGuild
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:299
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
appPermissions? | public | PermissionsBitField | BaseInteraction .appPermissions |
applicationId | public | string | BaseInteraction .applicationId |
channel? | public | AllChannels | BaseInteraction .channel |
channelId | public | undefined | string | BaseInteraction .channelId |
client | readonly | UsingClient | BaseInteraction .client |
data | public | Object | BaseInteraction .data |
data.guildId | public | undefined | string | - |
data.id | public | string | - |
data.name | public | string | - |
data.options | public | ( | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object )[] | - |
data.resolved | public | undefined | Object | - |
data.type | public | ChatInput | - |
entitlements | public | Object [] | BaseInteraction .entitlements |
guildId | public | undefined | string | BaseInteraction .guildId |
guildLocale | public | | 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 |
id | public | string | BaseInteraction .id |
locale | public | | "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 |
member | public | When <FromGuild , InteractionGuildMember , undefined > | BaseInteraction .member |
message? | public | Message | BaseInteraction .message |
options | public | OptionResolver | - |
replied? | public | boolean | Promise <boolean > | BaseInteraction .replied |
token | public | string | BaseInteraction .token |
type | public | ApplicationCommandAutocomplete | - |
user | public | User | BaseInteraction .user |
version | public | 1 | BaseInteraction .version |
Accessors
createdAt
1get createdAt(): Date
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
1get createdTimestamp(): number
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
Methods
deferReply()
1deferReply(flags?: MessageFlags): Promise<void>
Parameters
Parameter | Type |
---|---|
flags ? | MessageFlags |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:207
fetchGuild()
1fetchGuild(force: boolean): undefined | Promise<Guild<"cached"> | Guild<"api">>
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
undefined
| Promise
<Guild
<"cached"
> | Guild
<"api"
>>
Inherited from
Source
seyfert/src/structures/Interaction.ts:269
getInput()
1getInput(): string
Returns
string
Source
seyfert/src/structures/Interaction.ts:314
reply()
1reply(..._args: unknown[]): Promise<void>
Parameters
Parameter | Type |
---|---|
…_args | unknown [] |
Returns
Promise
<void
>
Inherited from
Intenal
Source
seyfert/src/structures/Interaction.ts:323
respond()
1respond(choices: undefined | APIApplicationCommandOptionChoice<string | number>[]): Promise<void>
Parameters
Parameter | Type |
---|---|
choices | undefined | APIApplicationCommandOptionChoice <string | number >[] |
Returns
Promise
<void
>
Source
seyfert/src/structures/Interaction.ts:318
from()
1static from(2 client: UsingClient,3 gateway: APIInteraction,4 __reply?: __InternalReplyFunction):5 | RoleSelectMenuInteraction6 | UserSelectMenuInteraction7 | MentionableSelectMenuInteraction8 | ChannelSelectMenuInteraction9 | StringSelectMenuInteraction<string[]>10 | AutocompleteInteraction<boolean>11 | ChatInputCommandInteraction<boolean>12 | UserCommandInteraction<boolean>13 | MessageCommandInteraction<boolean>14 | ButtonInteraction15 | ModalSubmitInteraction<boolean>16| BaseInteraction<boolean, APIPingInteraction>
Parameters
Parameter | Type |
---|---|
client | UsingClient |
gateway | APIInteraction |
__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
Source
seyfert/src/structures/Interaction.ts:216
transformBody()
1static 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
Parameter | Type |
---|---|
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 |
Returns
T
Inherited from
Source
seyfert/src/structures/Interaction.ts:164
transformBodyRequest()
1static transformBodyRequest(body: ReplyInteractionBody, self: BaseClient): APIInteractionResponse
Parameters
Parameter | Type |
---|---|
body | ReplyInteractionBody |
self | BaseClient |
Returns
APIInteractionResponse
Inherited from
BaseInteraction
.transformBodyRequest