LogoRobo.js
Packages@robojs/mock

waitForMessage()

Function: waitForMessage()

function waitForMessage(sessionId, options?): Promise<RecordedAction>

Wait for a message to be sent by the bot

Parameters

ParameterType
sessionIdstring
options?{ channelId: string; content: string | RegExp; timeout: number; }
options.channelId?string
options.content?string | RegExp
options.timeout?number

Returns

Promise<RecordedAction>

On this page