.fetch(messageId)
messageId: string → Promise<Message>
options: FetchMessagesOptions → Promise<Collection<string, Message>>
Fetch a single message by ID.
await channel.messages.fetch(messageId);Class
Per-channel message cache + fetch. Access via channel.messages. fetch always writes through the client message cache (when enabled) and constructs Message from the cached payload so get stays coherent.
new MessageManager(client: Client, channelId: string)ClientstringmessageId: string → Promise<Message>
options: FetchMessagesOptions → Promise<Collection<string, Message>>
Fetch a single message by ID.
await channel.messages.fetch(messageId);messageId: string → Message | undefined
Retrieve a cached message by ID, or undefined if missing / caching disabled.
channel.messages.get(messageId);