ChannelSelectMenuInteraction
Extends
Constructors
new ChannelSelectMenuInteraction(client, interaction, __reply)
Parameters
Parameter | Type |
---|---|
client | UsingClient |
interaction | APIMessageComponentSelectMenuInteraction |
__reply ? | __InternalReplyFunction |
Returns
Overrides
SelectMenuInteraction
.constructor
Source
seyfert/src/structures/Interaction.ts:504
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 |
channels | public | AllChannels [] | - |
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 |
message | public | Message | SelectMenuInteraction .message |
replied? | public | boolean | Promise <boolean > | SelectMenuInteraction .replied |
token | public | string | SelectMenuInteraction .token |
type | public | MessageComponent | SelectMenuInteraction .type |
user | public | User | SelectMenuInteraction .user |
version | public | 1 | SelectMenuInteraction .version |
Accessors
componentType
Returns
| Button
| StringSelect
| UserSelect
| RoleSelect
| MentionableSelect
| ChannelSelect
Source
seyfert/src/structures/Interaction.ts:443
createdAt
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
customId
Returns
string
Source
seyfert/src/structures/Interaction.ts:439
values
Returns
string
[]
Source
seyfert/src/structures/Interaction.ts:487
Methods
deferReply()
Parameters
Parameter | Type |
---|---|
flags ? | MessageFlags |
Returns
Promise
<void
>
Inherited from
SelectMenuInteraction
.deferReply
Source
seyfert/src/structures/Interaction.ts:207
deferUpdate()
Returns
Promise
<void
>
Inherited from
SelectMenuInteraction
.deferUpdate
Source
seyfert/src/structures/Interaction.ts:433
deleteMessage()
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<undefined
| void
>
Inherited from
SelectMenuInteraction
.deleteMessage
Source
seyfert/src/structures/Interaction.ts:383
deleteResponse()
Returns
Promise
<undefined
| void
>
Inherited from
SelectMenuInteraction
.deleteResponse
Source
seyfert/src/structures/Interaction.ts:379
editMessage()
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()
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()
Parameters
Parameter | Type |
---|---|
body | Omit <RESTPatchAPIWebhookWithTokenMessageJSONBody , "components" | "embeds" > & ResolverProps |
Returns
Promise
<WebhookMessage
>
Inherited from
SelectMenuInteraction
.editResponse
Source
seyfert/src/structures/Interaction.ts:375
fetchGuild()
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()
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<undefined
| WebhookMessage
>
Inherited from
SelectMenuInteraction
.fetchMessage
Source
seyfert/src/structures/Interaction.ts:332
fetchResponse()
Returns
Promise
<undefined
| WebhookMessage
>
Inherited from
SelectMenuInteraction
.fetchResponse
Source
seyfert/src/structures/Interaction.ts:336
followup()
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()
Returns
this is ButtonInteraction
Inherited from
SelectMenuInteraction
.isButton
Source
seyfert/src/structures/Interaction.ts:447
isChannelSelectMenu()
Returns
this is ChannelSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isChannelSelectMenu
Source
seyfert/src/structures/Interaction.ts:451
isMentionableSelectMenu()
Returns
this is MentionableSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isMentionableSelectMenu
Source
seyfert/src/structures/Interaction.ts:459
isRoleSelectMenu()
Returns
this is RoleSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isRoleSelectMenu
Source
seyfert/src/structures/Interaction.ts:455
isStringSelectMenu()
Returns
this is StringSelectMenuInteraction<string[]>
Inherited from
SelectMenuInteraction
.isStringSelectMenu
Source
seyfert/src/structures/Interaction.ts:467
isUserSelectMenu()
Returns
this is UserSelectMenuInteraction
Inherited from
SelectMenuInteraction
.isUserSelectMenu
Source
seyfert/src/structures/Interaction.ts:463
modal()
Parameters
Parameter | Type |
---|---|
body | ModalCreateBodyRequest |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:352
reply()
Parameters
Parameter | Type |
---|---|
body | ReplyInteractionBody |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:196
update()
Parameters
Parameter | Type |
---|---|
data | Omit <APIInteractionResponseCallbackData , "components" | "embeds" > & ResolverProps |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Interaction.ts:426
write()
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()
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()
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()
Parameters
Parameter | Type |
---|---|
body | ReplyInteractionBody |
self | BaseClient |
Returns
APIInteractionResponse
Inherited from
SelectMenuInteraction
.transformBodyRequest