Chameleon
Preparing search index...
ComponentContext
Class ComponentContext<Values, Fields>
Type Parameters
Values
=
any
Fields
=
any
Index
Constructors
constructor
Properties
user
guild?
channel?
interaction
Id
interaction
Token
custom
Id
values
fields
Accessors
replied
deferred
Methods
reply
defer
update
defer
Update
follow
Up
show
Modal
Constructors
constructor
new
ComponentContext
<
Values
=
any
,
Fields
=
any
>
(
client
:
Client
,
rawInteraction
:
Record
<
string
,
any
>
,
user
:
User
,
guild
?:
Guild
|
{
id
:
string
}
,
channel
?:
Channel
|
{
id
:
string
}
,
)
:
ComponentContext
<
Values
,
Fields
>
Type Parameters
Values
=
any
Fields
=
any
Parameters
client
:
Client
rawInteraction
:
Record
<
string
,
any
>
user
:
User
Optional
guild
:
Guild
|
{
id
:
string
}
Optional
channel
:
Channel
|
{
id
:
string
}
Returns
ComponentContext
<
Values
,
Fields
>
Properties
user
user
:
User
Optional
guild
guild
?:
Guild
|
{
id
:
string
}
Optional
channel
channel
?:
Channel
|
{
id
:
string
}
interaction
Id
interactionId
:
string
interaction
Token
interactionToken
:
string
custom
Id
customId
:
string
values
values
:
Values
fields
fields
:
Fields
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
>
update
update
(
payload
:
InteractionReplyOptions
)
:
Promise
<
void
>
Parameters
payload
:
InteractionReplyOptions
Returns
Promise
<
void
>
defer
Update
deferUpdate
()
:
Promise
<
void
>
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
user
guild
channel
interaction
Id
interaction
Token
custom
Id
values
fields
Accessors
replied
deferred
Methods
reply
defer
update
defer
Update
follow
Up
show
Modal
Chameleon
Loading...