Documentation / @imvu/bot / CommandContext
Interface: CommandContext<S>
Defined in: packages/bot/src/Bot.ts:102
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends MessageSource | MessageSource |
Properties
args
ts
args: string[];Defined in: packages/bot/src/Bot.ts:110
argText
ts
argText: string;Defined in: packages/bot/src/Bot.ts:111
author
ts
author: User;Defined in: packages/bot/src/Bot.ts:106
bot
ts
bot: Bot;Defined in: packages/bot/src/Bot.ts:103
command
ts
command: string;Defined in: packages/bot/src/Bot.ts:109
The canonical command name (not the alias that was typed).
message
ts
message: BotMessage;Defined in: packages/bot/src/Bot.ts:104
participant
ts
participant: ChatParticipant | null;Defined in: packages/bot/src/Bot.ts:107
role
ts
role: Role;Defined in: packages/bot/src/Bot.ts:113
The author's role in this source.
source
ts
source: S;Defined in: packages/bot/src/Bot.ts:105
Methods
reply()
ts
reply(text): Promise<void>;Defined in: packages/bot/src/Bot.ts:114
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
Promise<void>
whisper()
ts
whisper(text): Promise<void>;Defined in: packages/bot/src/Bot.ts:116
Whisper the author.
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
Promise<void>