.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. get returns the same Message instance for a cached id (identity). fetch always writes through the client message cache (when enabled).
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);messageId: string → Promise<Message>
Retrieve from cache, otherwise fetch.
await channel.messages.resolve(messageId);