Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
CommandInteraction
Class CommandInteraction<T>
Type parameters
T
:
PossiblyUncachedTextable
=
TextableChannel
Hierarchy
Interaction
CommandInteraction
Index
Constructors
constructor
Properties
acknowledged
app
Permissions
applicationID
channel
created
At
data
guildID
id
member
token
type
user
version
Methods
acknowledge
create
Followup
create
Message
defer
delete
Message
delete
Original
Message
edit
Message
edit
Original
Message
get
Original
Message
inspect
toJSON
to
String
from
get
Created
At
get
Discord
Epoch
Constructors
constructor
new
Command
Interaction<T>
(
id
:
string
)
:
CommandInteraction
<
T
>
Type parameters
T
:
PossiblyUncachedTextable
=
TextableChannel
Parameters
id:
string
Returns
CommandInteraction
<
T
>
Properties
acknowledged
acknowledged
:
boolean
Optional
app
Permissions
app
Permissions
:
Permission
applicationID
applicationID
:
string
channel
channel
:
T
created
At
created
At
:
number
data
data
:
{
id
:
string
;
name
:
string
;
options
?:
InteractionDataOptions
[]
;
resolved
?:
{
channels
?:
Collection
<
PartialChannel
>
;
members
?:
Collection
<
Omit
<
Member
,
"user"
|
"deaf"
|
"mute"
>
>
;
messages
?:
Collection
<
Message
<
TextableChannel
>
>
;
roles
?:
Collection
<
Role
>
;
users
?:
Collection
<
User
>
}
;
target_id
?:
string
;
type
:
ApplicationCommandTypes
}
Type declaration
id
:
string
name
:
string
Optional
options
?:
InteractionDataOptions
[]
Optional
resolved
?:
{
channels
?:
Collection
<
PartialChannel
>
;
members
?:
Collection
<
Omit
<
Member
,
"user"
|
"deaf"
|
"mute"
>
>
;
messages
?:
Collection
<
Message
<
TextableChannel
>
>
;
roles
?:
Collection
<
Role
>
;
users
?:
Collection
<
User
>
}
Optional
channels
?:
Collection
<
PartialChannel
>
Optional
members
?:
Collection
<
Omit
<
Member
,
"user"
|
"deaf"
|
"mute"
>
>
Optional
messages
?:
Collection
<
Message
<
TextableChannel
>
>
Optional
roles
?:
Collection
<
Role
>
Optional
users
?:
Collection
<
User
>
Optional
target_
id
?:
string
type
:
ApplicationCommandTypes
Optional
guildID
guildID
:
string
id
id
:
string
Optional
member
member
:
Member
token
token
:
string
type
type
:
2
Optional
user
user
:
User
version
version
:
number
Methods
acknowledge
acknowledge
(
flags
?:
number
)
:
Promise
<
void
>
Parameters
Optional
flags:
number
Returns
Promise
<
void
>
create
Followup
create
Followup
(
content
:
string
|
InteractionContent
, file
?:
FileContent
|
FileContent
[]
)
:
Promise
<
Message
<
TextableChannel
>
>
Parameters
content:
string
|
InteractionContent
Optional
file:
FileContent
|
FileContent
[]
Returns
Promise
<
Message
<
TextableChannel
>
>
create
Message
create
Message
(
content
:
string
|
InteractionContent
, file
?:
FileContent
|
FileContent
[]
)
:
Promise
<
void
>
Parameters
content:
string
|
InteractionContent
Optional
file:
FileContent
|
FileContent
[]
Returns
Promise
<
void
>
defer
defer
(
flags
?:
number
)
:
Promise
<
void
>
Parameters
Optional
flags:
number
Returns
Promise
<
void
>
delete
Message
delete
Message
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
delete
Original
Message
delete
Original
Message
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
edit
Message
edit
Message
(
messageID
:
string
, content
:
string
|
InteractionContentEdit
, file
?:
FileContent
|
FileContent
[]
)
:
Promise
<
Message
<
TextableChannel
>
>
Parameters
messageID:
string
content:
string
|
InteractionContentEdit
Optional
file:
FileContent
|
FileContent
[]
Returns
Promise
<
Message
<
TextableChannel
>
>
edit
Original
Message
edit
Original
Message
(
content
:
string
|
InteractionContentEdit
, file
?:
FileContent
|
FileContent
[]
)
:
Promise
<
Message
<
TextableChannel
>
>
Parameters
content:
string
|
InteractionContentEdit
Optional
file:
FileContent
|
FileContent
[]
Returns
Promise
<
Message
<
TextableChannel
>
>
get
Original
Message
get
Original
Message
(
)
:
Promise
<
Message
<
TextableChannel
>
>
Returns
Promise
<
Message
<
TextableChannel
>
>
inspect
inspect
(
)
:
CommandInteraction
<
T
>
Returns
CommandInteraction
<
T
>
toJSON
toJSON
(
props
?:
string
[]
)
:
JSONCache
Parameters
Optional
props:
string
[]
Returns
JSONCache
to
String
to
String
(
)
:
string
Returns
string
Static
from
from
(
data
:
BaseData
)
:
AnyInteraction
Parameters
data:
BaseData
Returns
AnyInteraction
Static
get
Created
At
get
Created
At
(
id
:
string
)
:
number
Parameters
id:
string
Returns
number
Static
get
Discord
Epoch
get
Discord
Epoch
(
id
:
string
)
:
number
Parameters
id:
string
Returns
number
Exports
Externals
Eris
Command
Interaction
constructor
acknowledged
app
Permissions
applicationID
channel
created
At
data
guildID
id
member
token
type
user
version
acknowledge
create
Followup
create
Message
defer
delete
Message
delete
Original
Message
edit
Message
edit
Original
Message
get
Original
Message
inspect
toJSON
to
String
from
get
Created
At
get
Discord
Epoch
Generated using
TypeDoc