@textile/hub > Users > listSentboxMessages
Users.listSentboxMessages() method
List the sent messages of the local user
Signature:
listSentboxMessages(opts?: SentboxListOptions): Promise<Array<UserMessage>>;
Parameters
Parameter | Type | Description |
---|---|---|
opts | SentboxListOptions |
Returns:
Promise<Array<UserMessage>>
Example
import { Users } from "@textile/hub"
async function example(users: Users) {
return await users.listSentboxMessages({
limit: 5,
ascending: true,
})
}