Class

MessageManager

Per-channel message cache + fetch. Access via channel.messages. get returns the same Message instance for a cached id (identity). fetch always writes through the client message cache (when enabled).

Constructor

new MessageManager(client: Client, channelId: string)
client
Client
channelId
string

Methods

.get(messageId)

messageId: stringMessage | undefined

Retrieve a cached message by ID, or undefined if missing / caching disabled.

channel.messages.get(messageId);