Class

PartialMessage

Uncached or incomplete message (MessageDelete, uncached MessageUpdate, MessageDeleteBulk entries). Not a Message: no edit() / reply(). Call fetch to hydrate, or narrow with message.partial.

Constructor

new PartialMessage(client: Client, data: { id: string; channelId: string; guildId?: string | null; channel?: TextBasedChannel | null; content?: string | null; authorId?: string | null; author?: User | null; createdAt?: Date | null; })
client
Client
data
{ }

Properties

NameTypeDescription
authorread-onlyUser | null
authorIdread-onlystring | null
channelread-onlyTextBasedChannel | nullLive text-capable channel from cache, or null if uncached / not text-based. Same contract as message.channel.
channelIdread-onlystring
clientread-onlyClient
contentread-onlystring | null
createdAtread-onlyDate | null
guildIdread-onlystring | null
idread-onlystring
partialread-onlytrue

Methods

.fetch()

Promise<Message>

Fetch the full message from the API.

const message = await partial.fetch();
await message.reply('Pong!');