Class: CommandInteraction
Hierarchy
↳
CommandInteraction
Constructors
constructor
• new CommandInteraction(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIChatInputApplicationCommandInteraction |
Overrides
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:35
Properties
channel
• channel: null
| Channel
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:26
client
• Readonly
client: Client
Inherited from
Defined in
packages/libcord/src/structures/Base.ts:8
data
• data: APIBaseInteraction
<any
, any
>
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:17
defered
• Optional
defered: boolean
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:32
guild
• guild: null
| Guild
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:27
id
• id: string
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:25
member
• member: null
| Member
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:29
name
• name: string
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:18
options
• Optional
options: any
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:31
replied
• Optional
replied: boolean
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:33
token
• token: string
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:30
type
• type: number
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:19
user
• Optional
user: User
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:28
Methods
defer
▸ defer(ephemeral
): Promise
<void
>
Parameters
Name | Type |
---|---|
ephemeral | boolean |
Returns
Promise
<void
>
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:67
isButton
▸ isButton(): this is ButtonInteraction
Returns
this is ButtonInteraction
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:38
isCommand
▸ isCommand(): this is CommandInteraction
Returns
this is CommandInteraction
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:26
isMessageContextMenu
▸ isMessageContextMenu(): this is MessageContextMenuInteraction
Returns
this is MessageContextMenuInteraction
Inherited from
Interaction.isMessageContextMenu
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:30
isSelectMenu
▸ isSelectMenu(): this is SelectMenuInteraction
Returns
this is SelectMenuInteraction
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:46
isUserContextMenu
▸ isUserContextMenu(): this is UserContextMenuInteraction
Returns
this is UserContextMenuInteraction
Inherited from
Defined in
packages/libcord/src/structures/interactions/Interaction.ts:34
reply
▸ reply(interactionOptions
): Promise
<CommandInteraction
>
Parameters
Name | Type |
---|---|
interactionOptions | string | InteractionOptions |
Returns
Promise
<CommandInteraction
>
Defined in
packages/libcord/src/structures/interactions/CommandInteraction.ts:79