Readonly
clientWhether or not messages should be cached.
Adds a reaction to a message.
The ID of the channel containing the message.
The ID of the message to add a reaction to.
The ID of the emote to add as a reaction.
A promise that resolves to nothing when the reaction is added.
Deletes either a whole reaction emote from a message or a specific user's if a userId is provided.
The ID of the channel containing the message.
The ID of the message to delete the reaction from.
The ID of the emote to delete as a reaction.
Optional
userId: stringA promise that resolves to nothing when the reaction is deleted.
Fetches a message from a channel.
The ID of the channel to fetch the message from.
The ID of the message to fetch.
Optional
force: booleanWhether or not to force the fetch.
A promise that resolves with the requested message.
Fetches multiple messages from a channel.
The ID of the channel to fetch messages from.
Additional options for the fetch.
A promise that resolves with a collection of messages.
Sends a message to a channel.
let replyObj = {
content: 'This is text, supports **markdown**.',
embeds: [{
title: 'This is an embed title!',
description: 'A description may go here'
}]
};
await message.client.messages.send(message.channelId, replyObj)
The ID of the channel to send the message to.
The content of the message.
A promise that resolves with the created message.
Updates a message in a channel.
The ID of the channel containing the message.
The ID of the message to update.
The new content of the message.
A promise that resolves with the updated message.
Generated using TypeDoc
Manager for handling caching and interactions for Messages