Class: ChatInputContext<Cached, InGuild>
Defined in: packages/bakit/src/core/context/CommandContext.ts:83
Extends
BaseCommandContext<Cached,InGuild>
Type Parameters
Cached
Cached extends boolean = boolean
InGuild
InGuild extends boolean = boolean
Constructors
Constructor
new ChatInputContext<
Cached,InGuild>(source):ChatInputContext<Cached,InGuild>
Defined in: packages/bakit/src/core/context/CommandContext.ts:18
Parameters
source
ChatInputCommandInteraction<Cached extends true ? "cached" : CacheType> | Message<InGuild>
Returns
ChatInputContext<Cached, InGuild>
Inherited from
BaseCommandContext.constructor
Properties
canceled
canceled:
boolean=false
Defined in: packages/bakit/src/core/context/Context.ts:2
Inherited from
source
source:
ChatInputCommandInteraction<Cachedextendstrue?"cached":CacheType>
Defined in: packages/bakit/src/core/context/CommandContext.ts:87
Overrides
Accessors
channel
Get Signature
get channel():
CacheTypeReducer<Cachedextendstrue?"cached":CacheType,null|GuildTextBasedChannel,null|GuildTextBasedChannel,null|GuildTextBasedChannel,null|TextBasedChannel> |If<InGuild,GuildTextBasedChannel,TextBasedChannel>
Defined in: packages/bakit/src/core/context/CommandContext.ts:28
Returns
CacheTypeReducer<Cached extends true ? "cached" : CacheType, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | GuildTextBasedChannel, null | TextBasedChannel> | If<InGuild, GuildTextBasedChannel, TextBasedChannel>
Inherited from
channelId
Get Signature
get channelId():
string
Defined in: packages/bakit/src/core/context/CommandContext.ts:32
Returns
string
Inherited from
client
Get Signature
get client():
BakitClient<true>
Defined in: packages/bakit/src/core/context/CommandContext.ts:24
Returns
BakitClient<true>
Inherited from
guild
Get Signature
get guild():
CacheTypeReducer<Cachedextendstrue?"cached":CacheType,Guild,null,null|Guild,null|Guild> |If<InGuild,Guild,null>
Defined in: packages/bakit/src/core/context/CommandContext.ts:36
Returns
CacheTypeReducer<Cached extends true ? "cached" : CacheType, Guild, null, null | Guild, null | Guild> | If<InGuild, Guild, null>
Inherited from
guildId
Get Signature
get guildId():
CacheTypeReducer<Cachedextendstrue?"cached":CacheType,string,string,string,null|string> |If<InGuild,string,null>
Defined in: packages/bakit/src/core/context/CommandContext.ts:40
Returns
CacheTypeReducer<Cached extends true ? "cached" : CacheType, string, string, string, null | string> | If<InGuild, string, null>
Inherited from
member
Get Signature
get member():
null|GuildMember|CacheTypeReducer<Cachedextendstrue?"cached":CacheType,GuildMember,APIInteractionGuildMember,GuildMember|APIInteractionGuildMember,null|GuildMember|APIInteractionGuildMember>
Defined in: packages/bakit/src/core/context/CommandContext.ts:44
Returns
null | GuildMember | CacheTypeReducer<Cached extends true ? "cached" : CacheType, GuildMember, APIInteractionGuildMember, GuildMember | APIInteractionGuildMember, null | GuildMember | APIInteractionGuildMember>
Inherited from
user
Get Signature
get user():
User
Defined in: packages/bakit/src/core/context/CommandContext.ts:62
Returns
User
Inherited from
Methods
cancel()
cancel():
void
Defined in: packages/bakit/src/core/context/Context.ts:4
Returns
void
Inherited from
inCachedGuild()
inCachedGuild():
this is CommandContext<true, true>
Defined in: packages/bakit/src/core/context/CommandContext.ts:52
Returns
this is CommandContext<true, true>
Inherited from
BaseCommandContext.inCachedGuild
inGuild()
inGuild():
this is CommandContext<Cached, true>
Defined in: packages/bakit/src/core/context/CommandContext.ts:48
Returns
this is CommandContext<Cached, true>
Inherited from
isChatInput()
isChatInput():
this is ChatInputContext<boolean, boolean>
Defined in: packages/bakit/src/core/context/CommandContext.ts:72
Returns
this is ChatInputContext<boolean, boolean>
Inherited from
BaseCommandContext.isChatInput
isMessage()
isMessage():
this is MessageContext<boolean, boolean>
Defined in: packages/bakit/src/core/context/CommandContext.ts:76
Returns
this is MessageContext<boolean, boolean>
Inherited from
send()
send(
options):Promise<Message<InGuild>>
Defined in: packages/bakit/src/core/context/CommandContext.ts:89
Parameters
options
Returns
Promise<Message<InGuild>>