Chameleon
Preparing search index...
CommandContext
Class CommandContext<Options>
Type Parameters
Options
=
Record
<
string
,
any
>
Index
Constructors
constructor
Properties
options
user
guild?
channel?
interaction
Id
interaction
Token
Accessors
replied
deferred
Methods
reply
defer
follow
Up
show
Modal
Constructors
constructor
new
CommandContext
<
Options
=
Record
<
string
,
any
>
>
(
client
:
Client
,
rawInteraction
:
Record
<
string
,
any
>
,
parsedOptions
:
Options
,
user
:
User
,
guild
?:
Guild
|
{
id
:
string
}
,
channel
?:
Channel
|
{
id
:
string
}
,
)
:
CommandContext
<
Options
>
Type Parameters
Options
=
Record
<
string
,
any
>
Parameters
client
:
Client
rawInteraction
:
Record
<
string
,
any
>
parsedOptions
:
Options
user
:
User
Optional
guild
:
Guild
|
{
id
:
string
}
Optional
channel
:
Channel
|
{
id
:
string
}
Returns
CommandContext
<
Options
>
Properties
options
options
:
Options
user
user
:
User
Optional
guild
guild
?:
Guild
|
{
id
:
string
}
Optional
channel
channel
?:
Channel
|
{
id
:
string
}
interaction
Id
interactionId
:
string
interaction
Token
interactionToken
:
string
Accessors
replied
get
replied
()
:
boolean
Returns
boolean
deferred
get
deferred
()
:
boolean
Returns
boolean
Methods
reply
reply
(
payload
:
InteractionReplyOptions
)
:
Promise
<
void
>
Parameters
payload
:
InteractionReplyOptions
Returns
Promise
<
void
>
defer
defer
(
options
?:
{
ephemeral
?:
boolean
}
)
:
Promise
<
void
>
Parameters
Optional
options
:
{
ephemeral
?:
boolean
}
Returns
Promise
<
void
>
follow
Up
followUp
(
payload
:
InteractionReplyOptions
)
:
Promise
<
void
>
Parameters
payload
:
InteractionReplyOptions
Returns
Promise
<
void
>
show
Modal
showModal
(
modal
:
any
)
:
Promise
<
void
>
Parameters
modal
:
any
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
options
user
guild
channel
interaction
Id
interaction
Token
Accessors
replied
deferred
Methods
reply
defer
follow
Up
show
Modal
Chameleon
Loading...