Skip to main content

getMessages

Gets all messages.

Arguments

Returns

This method will return an array of Message objects with all messages in the message box.

Example

client.getMessages({messageBox}).then(messages => {
messages.forEach(message => {
// messages
})
})