import { MessageTypes, type DiscordApplication, type DiscordAttachment, type DiscordEmbed, type DiscordMessage, type DiscordMessageActivity, type DiscordMessageComponents, type DiscordStickerItem, type InteractionTypes } from '@discordeno/types'; import Base from '../Base.js'; import type Client from '../Client.js'; import type { GetMessageReactionOptions, MessageContentEdit, MessageWebhookContent } from '../typings.js'; import type NewsChannel from './channels/News.js'; import type PrivateChannel from './channels/Private.js'; import type TextChannel from './channels/Text.js'; import type TextVoiceChannel from './channels/TextVoice.js'; import type NewsThreadChannel from './channels/threads/NewsThread.js'; import type PrivateThreadChannel from './channels/threads/PrivateThread.js'; import type PublicThreadChannel from './channels/threads/PublicThread.js'; import type Guild from './guilds/Guild.js'; import Member from './guilds/Member.js'; import User from './users/User.js'; export declare class Message extends Base { /** The client manager. */ client: Client; /** Timestamp of message creation */ timestamp: number; /** The type of the message */ type: MessageTypes; /** The channel the message is in. Can be partial with only the id if the channel is not cached. */ channel: PrivateChannel | TextChannel | NewsChannel | NewsThreadChannel | PublicThreadChannel | PrivateThreadChannel | TextVoiceChannel; /** The message content. */ content: string; /** An object containing the reactions on the message. Each key is a reaction emoji and each value is an object with properties `me` (Boolean) and `count` (Number) for that specific reaction emoji. */ reactions: Record; /** The ID of the guild this message is in (undefined if in DMs) */ guildID?: string; /** ID of the webhook that sent the message */ webhookID?: string; /** An object containing the reference to the original message if it is a crossposted message or reply */ messageReference?: { /** The id of the original message this message was crossposted from */ messageID?: string; /** The id of the channel this message was crossposted from */ channelID?: string; /** The id of the guild this message was crossposted from */ guildID?: string; } | null; /** The flags that are enabled on this message. */ flags: number; /** The message author */ author: User; /** The message author with server-specific data */ member?: Member; /** The message that was replied to. If undefined, message data was not received. If null, the message was deleted. */ referencedMessage?: Message | null; /** An object containing info about the interaction the message is responding to, if applicable */ interaction?: { /** The id of the interaction */ id: string; /** The type of interaction */ type: InteractionTypes; /** The name of the command */ name: string; /** The user who invoked the interaction */ user: User; /** The member who invoked the interaction */ member?: Member; }; /** Array of mentioned users */ mentions: User[]; /** Array of mentioned roles' ids */ roleMentions: string[]; /** Array of attachments */ attachments: DiscordAttachment[]; /** Array of embeds */ embeds: DiscordEmbed[]; /** The stickers sent with the message */ stickerItems: DiscordStickerItem[]; /** An array of component objects */ components: DiscordMessageComponents; /** The activity specified in the message */ activity?: DiscordMessageActivity; /** The application of the activity in the message */ application?: Partial; /** The ID of the interaction's application */ applicationID?: string; /** Timestamp of latest message edit */ editedTimestamp?: number; /** Whether the message mentions everyone/here or not */ mentionEveryone: boolean; /** Whether the message is pinned or not */ pinned: boolean; /** Whether to play the message using TTS or not */ tts: boolean; constructor(data: DiscordMessage, client: Client); /** * @deprecated Use `.client` instead. */ get _client(): Client; get guild(): Guild | undefined; update(data: DiscordMessage): void; get channelMentions(): string[]; get cleanContent(): string; get jumpLink(): string; /** Add a reaction to a message */ addReaction(reaction: string): Promise; /** Create a thread with this message */ createThreadWithMessage(options: { name: string; autoArchiveDuration: 60 | 1440 | 4320 | 10080; }): Promise; /** Crosspost (publish) a message to subscribed channels (NewsChannel only) */ crosspost(): Promise; /** Delete the message */ delete(reason?: string): Promise; /** Delete the message as a webhook */ deleteWebhook(token: string): Promise; /** Edit the message */ edit(content: MessageContentEdit): Promise; /** Edit the message as a webhook */ editWebhook(token: string, options: MessageWebhookContent): Promise; /** Get a list of users who reacted with a specific reaction */ getReaction(reaction: string, options?: GetMessageReactionOptions): Promise; /** Pin the message */ pin(): Promise; /** Remove a reaction from a message */ removeReaction(reaction: string): Promise; /** Remove all reactions from a message for a single emoji */ removeReactionEmoji(reaction: string): Promise; /** Remove all reactions from a message */ removeReactions(): Promise; /** Unpin the message */ unpin(): Promise; toJSON(props?: string[]): Record; } export default Message; //# sourceMappingURL=Message.d.ts.map