The chat based channel the messages belong to.
Readonly cacheThis cache of the manager.
Readonly channelThe chat based channel the messages belong to.
Readonly clientThe client the manager belongs to.
Create a message in the chat based channel.
The created message.
messages.create('Hello world!');
The payload of the message.
Edit a message in the chat based channel.
The edited message.
messages.edit(message, 'Hello world!');
The message to edit.
The payload of the message.
Fetch a message from the chat based channel, or cache.
The fetched message.
messages.fetch(message);
The message to fetch.
Optional options: FetchOptionsThe options to fetch the message with.
Fetch messages from the chat based channel.
The fetched messages.
messages.fetch();
Optional options: MessageFetchManyOptionsThe options to fetch the messages with.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
The manager of messages that belong to a chat based channel.
Example