import type { Client } from '../client/Client'; import type { MessageOptions } from './Channel'; import { DataManager } from './DataManager'; import { User } from './User'; /** * Represents a message on Discord */ declare class Message extends DataManager { channelId: string; guildId?: string; id: string; createdTimestamp: number; author: User | null; content: string | null; constructor(client: Client, userData: any); /** * Adds a reaction to the message * @param {string} emoji - The emoji to react with. Custom emojis should be used with `name:id`. * @example * // React with a unicode emoji * message.react('🤔'); * @example * // React with a custom emoji * message.react('clyde_dark:785673063828160542'); */ react(emoji: string): Promise; /** * Replies to this message * @param {string|MessagePayload} content * @example * message.reply(`Hello, ${message.author}!`); * @example * message.reply({ content: `Hello, ${message.author}!` }); * @returns {Promise} */ reply(content: MessageOptions): Promise; /** * Deletes this message * @returns Promise */ delete(): Promise; /** * The time the message was sent at * @type {Date} * @readonly */ get createdAt(): Date; /** * The channel the message was sent in * @type {?(TextChannel|GuildChannel|DMChannel|Channel)} * @readonly */ get channel(): import("../managers/ChannelManager").AnyChannel; /** * The guild the message was sent in * @type {?Guild} * @readonly */ get guild(): import("./Guild").Guild; /** * Represents the author of the message as a guild member. * Only available if the message comes from a guild where the author is still a member * @type {?GuildMember} */ get member(): import("./GuildMember").GuildMember; /** * When concatenated with a string, this automatically returns the message content instead of the Message object * @returns {string} */ toString(): string; parseData(data: any): any; _update(data: any): Message; } export { Message }; //# sourceMappingURL=Message.d.ts.map