Skip to content

qie.awaitingMessageResponse

Signature: qie.awaitingMessageResponse()

Returns: Boolean isAwaitingResponse - true = waiting for a response, false = response was posted or cancelled

Checks if the original message is waiting for a response to be posted or cancelled.

Note

This function should only be used in scripts where the 'message' object is available.

Parameters

None

Example

// Useful when a receiving channel expects you to post a response later.
// Only post if the original message is still waiting for a response.

if (qie.awaitingMessageResponse()) {
    qie.postMessageResponse('HTTP/1.1 200 OK\n\nI knew you were waiting for me.');
}