Stegripe Monorepo Packages
Preparing search index...
@stegripe/command-context
CommandContext
Class CommandContext
Hierarchy (
View Summary
)
CommandContext
CommandInteractionContext
MessageContext
Index
Constructors
constructor
Properties
context
Accessors
application
Id
author
channel
channel
Id
client
created
At
created
Timestamp
guild
guild
Id
id
member
type
Methods
in
Guild
is
Chat
Input
Interaction
Context
is
Command
Interaction
is
Message
Context
is
Message
Context
Menu
Interaction
Context
is
User
Context
Menu
Interaction
Context
reply
send
to
JSON
to
String
value
Of
Constructors
constructor
new
CommandContext
(
context
:
CommandInteraction
<
CacheType
>
|
Message
<
boolean
>
,
)
:
CommandContext
Parameters
context
:
CommandInteraction
<
CacheType
>
|
Message
<
boolean
>
Returns
CommandContext
Properties
Readonly
context
context
:
CommandInteraction
<
CacheType
>
|
Message
<
boolean
>
Accessors
application
Id
get
applicationId
()
:
string
|
null
Returns
string
|
null
author
get
author
()
:
User
Returns
User
channel
get
channel
()
:
TextBasedChannel
|
null
Returns
TextBasedChannel
|
null
channel
Id
get
channelId
()
:
string
Returns
string
client
get
client
()
:
Client
<
true
>
Returns
Client
<
true
>
created
At
get
createdAt
()
:
Date
Returns
Date
created
Timestamp
get
createdTimestamp
()
:
number
Returns
number
guild
get
guild
()
:
Guild
|
null
Returns
Guild
|
null
guild
Id
get
guildId
()
:
string
|
null
Returns
string
|
null
id
get
id
()
:
string
Returns
string
member
get
member
()
:
GuildMember
|
APIInteractionGuildMember
|
null
Returns
GuildMember
|
APIInteractionGuildMember
|
null
type
get
type
()
:
ApplicationCommand
|
MessageType
Returns
ApplicationCommand
|
MessageType
Methods
in
Guild
inGuild
()
:
boolean
Returns
boolean
is
Chat
Input
Interaction
Context
isChatInputInteractionContext
()
:
this
is
ChatInputCommandInteractionContext
Returns
this
is
ChatInputCommandInteractionContext
is
Command
Interaction
isCommandInteraction
()
:
this
is
CommandInteractionContext
Returns
this
is
CommandInteractionContext
is
Message
Context
isMessageContext
()
:
this
is
MessageContext
Returns
this
is
MessageContext
is
Message
Context
Menu
Interaction
Context
isMessageContextMenuInteractionContext
()
:
this
is
MessageContextMenuCommandInteractionContext
Returns
this
is
MessageContextMenuCommandInteractionContext
is
User
Context
Menu
Interaction
Context
isUserContextMenuInteractionContext
()
:
this
is
UserContextMenuCommandInteractionContext
Returns
this
is
UserContextMenuCommandInteractionContext
reply
reply
(
options
:
string
|
MessagePayloadOption
)
:
Promise
<
Message
<
boolean
>
>
Parameters
options
:
string
|
MessagePayloadOption
Returns
Promise
<
Message
<
boolean
>
>
send
send
(
options
:
string
|
MessagePayloadOption
)
:
Promise
<
Message
<
boolean
>
>
Parameters
options
:
string
|
MessagePayloadOption
Returns
Promise
<
Message
<
boolean
>
>
to
JSON
toJSON
(
...
props
:
Record
<
string
,
string
|
boolean
>
[]
)
:
unknown
Parameters
...
props
:
Record
<
string
,
string
|
boolean
>
[]
Returns
unknown
to
String
toString
()
:
string
Returns
string
value
Of
valueOf
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
context
Accessors
application
Id
author
channel
channel
Id
client
created
At
created
Timestamp
guild
guild
Id
id
member
type
Methods
in
Guild
is
Chat
Input
Interaction
Context
is
Command
Interaction
is
Message
Context
is
Message
Context
Menu
Interaction
Context
is
User
Context
Menu
Interaction
Context
reply
send
to
JSON
to
String
value
Of
Stegripe Monorepo Packages
Loading...