UserCommandInteraction
Extends
ApplicationCommandInteraction
<FromGuild
,APIUserApplicationCommandInteraction
>
Type parameters
Type parameter | Value |
---|---|
FromGuild extends boolean | boolean |
Constructors
new UserCommandInteraction(client, interaction, __reply)
1new UserCommandInteraction<FromGuild>(2 client: UsingClient,3 interaction: APIUserApplicationCommandInteraction,4__reply?: __InternalReplyFunction): UserCommandInteraction<FromGuild>
Parameters
Parameter | Type |
---|---|
client | UsingClient |
interaction | APIUserApplicationCommandInteraction |
__reply ? | __InternalReplyFunction |
Returns
UserCommandInteraction
<FromGuild
>
Inherited from
ApplicationCommandInteraction
.constructor
Source
seyfert/src/structures/Interaction.ts:92
Properties
Property | Modifier | Type | Overrides | Inherited from |
---|---|---|---|---|
appPermissions? | public | PermissionsBitField | ApplicationCommandInteraction .appPermissions | ApplicationCommandInteraction .appPermissions |
applicationId | public | string | ApplicationCommandInteraction .applicationId | ApplicationCommandInteraction .applicationId |
channel? | public | AllChannels | ApplicationCommandInteraction .channel | ApplicationCommandInteraction .channel |
channelId | public | undefined | string | ApplicationCommandInteraction .channelId | ApplicationCommandInteraction .channelId |
client | readonly | UsingClient | ApplicationCommandInteraction .client | ApplicationCommandInteraction .client |
data | public | Object | ApplicationCommandInteraction .data | ApplicationCommandInteraction .data |
data.guildId | public | undefined | string | - | - |
data.id | public | string | - | - |
data.name | public | string | - | - |
data.resolved | public | Object | - | - |
data.resolved.members | public | undefined | Object | - | - |
data.resolved.users | public | Object | - | - |
data.targetId | public | string | - | - |
data.type | public | User | - | - |
entitlements | public | Object [] | ApplicationCommandInteraction .entitlements | ApplicationCommandInteraction .entitlements |
guildId | public | undefined | string | ApplicationCommandInteraction .guildId | ApplicationCommandInteraction .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" | ApplicationCommandInteraction .guildLocale | ApplicationCommandInteraction .guildLocale |
id | public | string | ApplicationCommandInteraction .id | ApplicationCommandInteraction .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" | ApplicationCommandInteraction .locale | ApplicationCommandInteraction .locale |
member | public | When <FromGuild , InteractionGuildMember , undefined > | ApplicationCommandInteraction .member | ApplicationCommandInteraction .member |
message? | public | Message | ApplicationCommandInteraction .message | ApplicationCommandInteraction .message |
replied? | public | boolean | Promise <boolean > | ApplicationCommandInteraction .replied | ApplicationCommandInteraction .replied |
token | public | string | ApplicationCommandInteraction .token | ApplicationCommandInteraction .token |
type | public | User | ApplicationCommandInteraction .type | ApplicationCommandInteraction .type |
user | public | User | ApplicationCommandInteraction .user | ApplicationCommandInteraction .user |
version | public | 1 | ApplicationCommandInteraction .version | ApplicationCommandInteraction .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
ApplicationCommandInteraction
.deferReply
Source
seyfert/src/structures/Interaction.ts:207
deleteMessage()
1deleteMessage(messageId: string): Promise<undefined | void>
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<undefined
| void
>
Inherited from
ApplicationCommandInteraction
.deleteMessage
Source
seyfert/src/structures/Interaction.ts:383
deleteResponse()
1deleteResponse(): Promise<undefined | void>
Returns
Promise
<undefined
| void
>
Inherited from
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.fetchMessage
Source
seyfert/src/structures/Interaction.ts:332
fetchResponse()
1fetchResponse(): Promise<undefined | WebhookMessage>
Returns
Promise
<undefined
| WebhookMessage
>
Inherited from
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.followup
Source
seyfert/src/structures/Interaction.ts:387
modal()
1modal(body: ModalCreateBodyRequest): Promise<void>
Parameters
Parameter | Type |
---|---|
body | ModalCreateBodyRequest |
Returns
Promise
<void
>
Inherited from
ApplicationCommandInteraction
.modal
Source
seyfert/src/structures/Interaction.ts:352
reply()
1reply(body: ReplyInteractionBody): Promise<void>
Parameters
Parameter | Type |
---|---|
body | ReplyInteractionBody |
Returns
Promise
<void
>
Inherited from
ApplicationCommandInteraction
.reply
Source
seyfert/src/structures/Interaction.ts:196
respond()
1respond(data: APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource | APIInteractionResponseDeferredMessageUpdate | APIInteractionResponseUpdateMessage): Promise<void>
Parameters
Parameter | Type |
---|---|
data | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource | APIInteractionResponseDeferredMessageUpdate | APIInteractionResponseUpdateMessage |
Returns
Promise
<void
>
Inherited from
ApplicationCommandInteraction
.respond
Source
seyfert/src/structures/Interaction.ts:397
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
ApplicationCommandInteraction
.write
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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.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
ApplicationCommandInteraction
.transformBodyRequest