Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
interaction/context
InteractionContext
Class InteractionContext
Interaction Command Context
Hierarchy
InteractionContext
Index
Constructors
constructor
Properties
client
command
interaction
interaction
Command
Client
invoker
loading
Timeout
metadata
Accessors
application
application
Id
applications
channel
channel
Id
channels
cluster
command
Client
data
emojis
gateway
guild
guild
Id
guilds
id
in
Dm
interaction
Id
interactions
manager
me
member
members
messages
name
notes
owners
presences
relationships
responded
response
response
Deleted
response
Id
rest
roles
sessions
shard
Count
shard
Id
stage
Instances
stickers
token
typings
user
user
Id
users
voice
Calls
voice
Channel
voice
Connection
voice
Connections
voice
State
voice
States
Methods
create
Message
create
Response
delete
Message
delete
Response
edit
Message
edit
OrRespond
edit
Response
fetch
Message
fetch
Response
respond
toJSON
to
String
Constructors
constructor
new
Interaction
Context
(
interactionCommandClient
:
InteractionCommandClient
, interaction
:
Interaction
, command
:
InteractionCommand
<
ParsedArgs
>
, invoker
:
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
)
:
InteractionContext
Parameters
interactionCommandClient:
InteractionCommandClient
interaction:
Interaction
command:
InteractionCommand
<
ParsedArgs
>
invoker:
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
Returns
InteractionContext
Properties
Readonly
client
client
:
ShardClient
Readonly
command
command
:
InteractionCommand
<
ParsedArgs
>
Readonly
interaction
interaction
:
Interaction
Readonly
interaction
Command
Client
interaction
Command
Client
:
InteractionCommandClient
Readonly
invoker
invoker
:
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
Optional
Readonly
loading
Timeout
loading
Timeout
:
Timeout
Optional
metadata
metadata
:
Record
<
string
,
any
>
Accessors
application
get
application
(
)
:
null
|
Oauth2Application
Returns
null
|
Oauth2Application
application
Id
get
applicationId
(
)
:
string
Returns
string
applications
get
applications
(
)
:
Applications
Returns
Applications
channel
get
channel
(
)
:
null
|
Channel
Returns
null
|
Channel
channel
Id
get
channelId
(
)
:
undefined
|
string
Returns
undefined
|
string
channels
get
channels
(
)
:
Channels
Returns
Channels
cluster
get
cluster
(
)
:
null
|
ClusterClient
Returns
null
|
ClusterClient
command
Client
get
commandClient
(
)
:
null
|
CommandClient
Returns
null
|
CommandClient
data
get
data
(
)
:
InteractionDataApplicationCommand
Returns
InteractionDataApplicationCommand
emojis
get
emojis
(
)
:
Emojis
Returns
Emojis
gateway
get
gateway
(
)
:
Socket
Returns
Socket
guild
get
guild
(
)
:
null
|
Guild
Returns
null
|
Guild
guild
Id
get
guildId
(
)
:
undefined
|
string
Returns
undefined
|
string
guilds
get
guilds
(
)
:
Guilds
Returns
Guilds
id
get
id
(
)
:
string
Returns
string
in
Dm
get
inDm
(
)
:
boolean
Returns
boolean
interaction
Id
get
interactionId
(
)
:
string
Returns
string
interactions
get
interactions
(
)
:
Interactions
Returns
Interactions
manager
get
manager
(
)
:
null
|
ClusterProcessChild
Returns
null
|
ClusterProcessChild
me
get
me
(
)
:
null
|
Member
Returns
null
|
Member
member
get
member
(
)
:
undefined
|
Member
Returns
undefined
|
Member
members
get
members
(
)
:
Members
Returns
Members
messages
get
messages
(
)
:
Messages
Returns
Messages
name
get
name
(
)
:
string
Returns
string
notes
get
notes
(
)
:
Notes
Returns
Notes
owners
get
owners
(
)
:
BaseCollection
<
string
,
User
>
Returns
BaseCollection
<
string
,
User
>
presences
get
presences
(
)
:
Presences
Returns
Presences
relationships
get
relationships
(
)
:
Relationships
Returns
Relationships
responded
get
responded
(
)
:
boolean
Returns
boolean
response
get
response
(
)
:
null
|
Message
Returns
null
|
Message
response
Deleted
get
responseDeleted
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
response
Id
get
responseId
(
)
:
undefined
|
string
Returns
undefined
|
string
rest
get
rest
(
)
:
RestClient
Returns
RestClient
roles
get
roles
(
)
:
Roles
Returns
Roles
sessions
get
sessions
(
)
:
Sessions
Returns
Sessions
shard
Count
get
shardCount
(
)
:
number
Returns
number
shard
Id
get
shardId
(
)
:
number
Returns
number
stage
Instances
get
stageInstances
(
)
:
StageInstances
Returns
StageInstances
stickers
get
stickers
(
)
:
Stickers
Returns
Stickers
token
get
token
(
)
:
string
Returns
string
typings
get
typings
(
)
:
TypingCollection
Returns
TypingCollection
user
get
user
(
)
:
User
Returns
User
user
Id
get
userId
(
)
:
string
Returns
string
users
get
users
(
)
:
Users
Returns
Users
voice
Calls
get
voiceCalls
(
)
:
VoiceCalls
Returns
VoiceCalls
voice
Channel
get
voiceChannel
(
)
:
null
|
ChannelGuildVoice
Returns
null
|
ChannelGuildVoice
voice
Connection
get
voiceConnection
(
)
:
undefined
|
VoiceConnection
Returns
undefined
|
VoiceConnection
voice
Connections
get
voiceConnections
(
)
:
VoiceConnections
Returns
VoiceConnections
voice
State
get
voiceState
(
)
:
null
|
VoiceState
Returns
null
|
VoiceState
voice
States
get
voiceStates
(
)
:
VoiceStates
Returns
VoiceStates
Methods
create
Message
create
Message
(
options
?:
string
|
ExecuteWebhook
)
:
Promise
<
null
|
Message
>
Parameters
options:
string
|
ExecuteWebhook
= {}
Returns
Promise
<
null
|
Message
>
create
Response
create
Response
(
options
:
number
|
CreateInteractionResponse
, data
?:
string
|
CreateInteractionResponseInnerPayload
)
:
Promise
<
any
>
Parameters
options:
number
|
CreateInteractionResponse
Optional
data:
string
|
CreateInteractionResponseInnerPayload
Returns
Promise
<
any
>
delete
Message
delete
Message
(
messageId
:
string
)
:
Promise
<
any
>
Parameters
messageId:
string
Returns
Promise
<
any
>
delete
Response
delete
Response
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
edit
Message
edit
Message
(
messageId
:
string
, options
?:
EditWebhookTokenMessage
)
:
Promise
<
Message
>
Parameters
messageId:
string
options:
EditWebhookTokenMessage
= {}
Returns
Promise
<
Message
>
edit
OrRespond
edit
OrRespond
(
options
?:
string
|
InteractionEditOrRespond
)
:
Promise
<
any
>
Parameters
options:
string
|
InteractionEditOrRespond
= {}
Returns
Promise
<
any
>
edit
Response
edit
Response
(
options
?:
EditWebhookTokenMessage
)
:
Promise
<
Message
>
Parameters
options:
EditWebhookTokenMessage
= {}
Returns
Promise
<
Message
>
fetch
Message
fetch
Message
(
messageId
:
string
)
:
Promise
<
Message
>
Parameters
messageId:
string
Returns
Promise
<
Message
>
fetch
Response
fetch
Response
(
)
:
Promise
<
Message
>
Returns
Promise
<
Message
>
respond
respond
(
options
:
number
|
CreateInteractionResponse
, data
?:
string
|
CreateInteractionResponseInnerPayload
)
:
Promise
<
any
>
Parameters
options:
number
|
CreateInteractionResponse
Optional
data:
string
|
CreateInteractionResponseInnerPayload
Returns
Promise
<
any
>
toJSON
toJSON
(
)
:
object
Returns
object
to
String
to
String
(
)
:
string
Returns
string
Exports
interaction/context
Interaction
Context
constructor
client
command
interaction
interaction
Command
Client
invoker
loading
Timeout
metadata
application
application
Id
applications
channel
channel
Id
channels
cluster
command
Client
data
emojis
gateway
guild
guild
Id
guilds
id
in
Dm
interaction
Id
interactions
manager
me
member
members
messages
name
notes
owners
presences
relationships
responded
response
response
Deleted
response
Id
rest
roles
sessions
shard
Count
shard
Id
stage
Instances
stickers
token
typings
user
user
Id
users
voice
Calls
voice
Channel
voice
Connection
voice
Connections
voice
State
voice
States
create
Message
create
Response
delete
Message
delete
Response
edit
Message
edit
OrRespond
edit
Response
fetch
Message
fetch
Response
respond
toJSON
to
String
Generated using
TypeDoc
Interaction Command Context