Interaction
The interaction class.
Last updated
Was this helpful?
The interaction class.
Last updated
Was this helpful?
Parameter
Type
Required
Default
Description
client
true
none
The client this interaction uses.
handler
true
none
The handler this command uses
channel
true
none
The TextChannel this interaction was called in.
d
any
true
none
The raw Gateway event data.
id
ID of this interaction. Type: string
type
The type of this interaction. Type:
data
The data used by this interaction. Type:
guild
The guild this command has been executed in. Type:
channel
member
client
handler
reply_send
Used to check if a reply has already been send. There is a maximum of 1 reply each interaction. Type: bool
option<T = any>(option: string | string[])
Easily get an specified option. Returns: T | undefined | null
@DEPRECATED getOption<T = any>(option: string)
async pong(showSource: bool = true)
Close the interaction callback. Returns: void
Parse the interaction options using the command. Returns: void
The channel this command has been executed in. Type:
The member that executed this command. Type:
The client this interaction uses. Type:
The command handler this interaction uses. Type:
Get an specified option from all options. Returns:
async send(...messages: )
Send a message back to the user, this won't display source and closes the callback. Returns:
async reply(...messages: )
Send a message back to the user, this will display source and close the callback. Returns:
async parseOptions(command: )