Skip to content

Documentation / @imvu/bot / BotEvents

Interface: BotEvents ​

Defined in: packages/bot/src/Bot.ts:130

Properties ​

booted ​

ts
booted: [room: BotRoom, by: string];

Defined in: packages/bot/src/Bot.ts:136


commandError ​

ts
commandError: [error: Error, context: CommandContext<MessageSource>];

Defined in: packages/bot/src/Bot.ts:142


denied ​

ts
denied: [context: CommandContext<MessageSource>];

Defined in: packages/bot/src/Bot.ts:141

A command was refused for lack of permission.


error ​

ts
error: [error: Error, source?: MessageSource];

Defined in: packages/bot/src/Bot.ts:143


message ​

ts
message: [message: BotMessage];

Defined in: packages/bot/src/Bot.ts:131


participantJoin ​

ts
participantJoin: [participant: ChatParticipant, room: BotRoom];

Defined in: packages/bot/src/Bot.ts:137


participantLeave ​

ts
participantLeave: [event: ParticipantLeave, room: BotRoom];

Defined in: packages/bot/src/Bot.ts:138


participantUpdate ​

ts
participantUpdate: [participant: ChatParticipant, changes: ParticipantChange[], room: BotRoom];

Defined in: packages/bot/src/Bot.ts:139


roomJoin ​

ts
roomJoin: [room: BotRoom];

Defined in: packages/bot/src/Bot.ts:132


roomLeave ​

ts
roomLeave: [room: BotRoom, reason: ChatSessionCloseReason];

Defined in: packages/bot/src/Bot.ts:134

The bot is out of the room for good (booted, or rejoining failed). Not emitted for leave().


roomRejoin ​

ts
roomRejoin: [room: BotRoom];

Defined in: packages/bot/src/Bot.ts:135

Released under the MIT License.