MentionableSelectMenuInteraction
Extends
Constructors
new MentionableSelectMenuInteraction(client, interaction, __reply)
1new MentionableSelectMenuInteraction(2 client: UsingClient,3 interaction: APIMessageComponentSelectMenuInteraction,4 __reply?: __InternalReplyFunction): MentionableSelectMenuInteraction
Parameters
Parameter | Type |
---|---|
client | UsingClient |
interaction | APIMessageComponentSelectMenuInteraction |
__reply ? | __InternalReplyFunction |
Returns
MentionableSelectMenuInteraction
Overrides
SelectMenuInteraction
.constructor
Source
seyfert/src/structures/Interaction.ts:519
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
appPermissions? | public | PermissionsBitField | SelectMenuInteraction .appPermissions |
applicationId | public | string | SelectMenuInteraction .applicationId |
channel | public | AllChannels | SelectMenuInteraction .channel |
channelId | public | string | SelectMenuInteraction .channelId |
client | readonly | UsingClient | SelectMenuInteraction .client |
data | public | ObjectToLower <APIMessageSelectMenuInteractionData | undefined & APIMessageSelectMenuInteractionData > | SelectMenuInteraction .data |
entitlements | public | Object [] | SelectMenuInteraction .entitlements |
guildId | public | undefined | string | SelectMenuInteraction .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" | SelectMenuInteraction .guildLocale |
id | public | string | SelectMenuInteraction .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" | SelectMenuInteraction .locale |
member | public | undefined | InteractionGuildMember | SelectMenuInteraction .member |
members | public | InteractionGuildMember [] | - |
message | public | Message | SelectMenuInteraction .message |
replied? | public | boolean | Promise <boolean > | SelectMenuInteraction .replied |
roles | public | GuildRole [] | - |
token | public | string | SelectMenuInteraction .token |
type | public | MessageComponent | SelectMenuInteraction .type |
user | public | User | SelectMenuInteraction .user |
users | public | User [] | - |
version | public | 1 | SelectMenuInteraction .version |
Accessors
componentType
1get componentType():2 | Button3 | StringSelect4 | UserSelect5 | RoleSelect6 | MentionableSelect7 | ChannelSelect
Returns
| Button
| StringSelect
| UserSelect
| RoleSelect
| MentionableSelect
| ChannelSelect
Source
seyfert/src/structures/Interaction.ts:443
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
customId
1get customId(): string
Returns
string
Source
seyfert/src/structures/Interaction.ts:439
values
1get values(): string[]
Returns
string
[]
Source
seyfert/src/structures/Interaction.ts:487
Methods
deferReply()
1deferReply(flags?: MessageFlags): Promise<void>
Parameters
Parameter | Type |
---|---|
flags ? | MessageFlags |
Returns
Promise
<void
>
Inherited from
SelectMenuInteraction
.deferReply
Source
seyfert/src/structures/Interaction.ts:207
deferUpdate()
1deferUpdate(): Promise<void>
Returns
Promise
<void
>
Inherited from
SelectMenuInteraction
.deferUpdate
Source
seyfert/src/structures/Interaction.ts:433
deleteMessage()
1deleteMessage(messageId: string): Promise<undefined | void>
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<undefined
| void
>
Inherited from
SelectMenuInteraction
.deleteMessage
Source
seyfert/src/structures/Interaction.ts:383
deleteResponse()
1deleteResponse(): Promise<undefined | void>
Returns
Promise
<undefined
| void
>
Inherited from
SelectMenuInteraction
.deleteResponse
Source
seyfert/src/structures/Interaction.ts:379
editMessage()
1editMessage(messageId: string, body: Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps): Promise<WebhookMessage>
Parameters
Parameter | Type |
---|---|
messageId | string |
body | Omit <RESTPatchAPIWebhookWithTokenMessageJSONBody , "components" | "embeds" > & ResolverProps |
Returns
Promise
<WebhookMessage
>
Inherited from
SelectMenuInteraction
.editMessage
Source
seyfert/src/structures/Interaction.ts:371
editOrReply()
1editOrReply<FR>(body: Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps, fetchReply?: FR): Promise<When<FR, WebhookMessage, void>>
Type parameters
Type parameter | Value |
---|---|
FR extends boolean | false |
Parameters
Parameter | Type |
---|---|
body | Omit <APIInteractionResponseCallbackData , "components" | "embeds" | "poll" > & SendResolverProps |
fetchReply ? | FR |
Returns
Promise
<When
<FR
, WebhookMessage
, void
>>
Inherited from
SelectMenuInteraction
.editOrReply
Source
seyfert/src/structures/Interaction.ts:359
editResponse()
1editResponse(body: Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps): Promise<WebhookMessage>
Parameters
Parameter | Type |
---|---|
body | Omit <RESTPatchAPIWebhookWithTokenMessageJSONBody , "components" | "embeds" > & ResolverProps |
Returns
Promise
<WebhookMessage
>
Inherited from
SelectMenuInteraction
.editResponse
Source
seyfert/src/structures/Interaction.ts:375
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
SelectMenuInteraction
.fetchGuild
Source
seyfert/src/structures/Interaction.ts:269
fetchMessage()
1fetchMessage(messageId: string): Promise<undefined | WebhookMessage>
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<undefined
| WebhookMessage
>
Inherited from
SelectMenuInteraction
.fetchMessage
Source
seyfert/src/structures/Interaction.ts:332
fetchResponse()
1fetchResponse(): Promise<undefined | WebhookMessage>
Returns
Promise
<undefined
| WebhookMessage
>
Inherited from
SelectMenuInteraction
.fetchResponse
Source
seyfert/src/structures/Interaction.ts:336
followup()
1followup(body: Omit<RESTPostAPIWebhookWithTokenJSONBody, "components" | "embeds" | "poll"> & SendResolverProps): Promise<WebhookMessage>
Parameters
Parameter | Type |
---|---|
body | Omit <RESTPostAPIWebhookWithTokenJSONBody , "components" | "embeds" | "poll" > & SendResolverProps |
Returns
Promise
<WebhookMessage
>
Inherited from
SelectMenuInteraction
.followup
Source
seyfert/src/structures/Interaction.ts:387
isButton()
1isButton(): this is ButtonInteraction
Returns
this is ButtonInteraction
Inherited from
SelectMenuInteraction
.isButton
Source
seyfert/src/structures/Interaction.ts:447
isChannelSelectMenu()
1isChannelSelectMenu(): this is ChannelSelectMenuInteraction
Returns
this is ChannelSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isChannelSelectMenu
Source
seyfert/src/structures/Interaction.ts:451
isMentionableSelectMenu()
1isMentionableSelectMenu(): this is MentionableSelectMenuInteraction
Returns
this is MentionableSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isMentionableSelectMenu
Source
seyfert/src/structures/Interaction.ts:459
isRoleSelectMenu()
1isRoleSelectMenu(): this is RoleSelectMenuInteraction
Returns
this is RoleSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isRoleSelectMenu
Source
seyfert/src/structures/Interaction.ts:455
isStringSelectMenu()
1isStringSelectMenu(): this is StringSelectMenuInteraction<string[]>
Returns
this is StringSelectMenuInteraction<string[]>
Inherited from
SelectMenuInteraction
.isStringSelectMenu
Source
seyfert/src/structures/Interaction.ts:467
isUserSelectMenu()
1isUserSelectMenu(): this is UserSelectMenuInteraction
Returns
this is UserSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isUserSelectMenu
Source
seyfert/src/structures/Interaction.ts:463
modal()
1modal(body: ModalCreateBodyRequest): Promise<void>
Parameters
Parameter | Type |
---|---|
body | ModalCreateBodyRequest |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:352
reply()
1reply(body: ReplyInteractionBody): Promise<void>
Parameters
Parameter | Type |
---|---|
body | ReplyInteractionBody |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:196
update()
1update(data: Omit<APIInteractionResponseCallbackData, "components" | "embeds"> & ResolverProps): Promise<void>
Parameters
Parameter | Type |
---|---|
data | Omit <APIInteractionResponseCallbackData , "components" | "embeds" > & ResolverProps |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:426
write()
1write<FR>(body: Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps, fetchReply?: FR): Promise<When<FR, WebhookMessage, void>>
Type parameters
Type parameter | Value |
---|---|
FR extends boolean | false |
Parameters
Parameter | Type |
---|---|
body | Omit <APIInteractionResponseCallbackData , "components" | "embeds" | "poll" > & SendResolverProps |
fetchReply ? | FR |
Returns
Promise
<When
<FR
, WebhookMessage
, void
>>
Inherited from
Source
seyfert/src/structures/Interaction.ts:340
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
SelectMenuInteraction
.transformBody
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
SelectMenuInteraction
.transformBodyRequest