import type { BigString, DiscordChannel, GetMessagesOptions } from '@discordeno/types'; import type Client from '../../../Client.js'; import Collection from '../../../Collection.js'; import type { FileContent, GetMessageReactionOptions, MessageContent, MessageContentEdit, PurgeChannelOptions } from '../../../typings.js'; import type Message from '../../Message.js'; import type User from '../../users/User.js'; import GuildChannel from '../Guild.js'; import ThreadMember from './Member.js'; export declare class ThreadChannel extends GuildChannel { /** The cached messages that were sent in this channel. */ messages: Collection; /** The cached thread members that are in this channel. */ members: Collection; /** The id of the last message in this channel. */ lastMessageID: string; /** The id of the user who created this thread. */ ownerID: string; /** The approximate amount of members that have joined this thread. */ memberCount?: number; /** The approximate amount of messages in this channel. */ messageCount?: number; /** The rate limit that users can send messages in this channel. 0 means no rate limit has been enabled. */ rateLimitPerUser?: number; /** The data relevant to this thread. */ threadMetadata?: { /** Timestamp when the thread's archive status was last changed, used for calculating recent activity */ archiveTimestamp: number; /** Whether the thread is archived. */ archived: boolean; /** Duration in minutes to automatically archive the thread after recent activity, either 60, 1440, 4320 or 10080 */ autoArchiveDuration: number; /** Whether the thread is locked. */ locked: boolean; /** Whether or not the thread is inviteable. */ invitable?: boolean; }; /** The bot's thread member object if it has joined the thread. */ member?: ThreadMember; constructor(data: DiscordChannel, client: Client, messageLimit?: number); update(data: DiscordChannel): void; addMessageReaction(messageID: BigString, reaction: string): Promise; createMessage(content: MessageContent, file?: FileContent | FileContent[]): Promise; deleteMessage(messageID: BigString, reason?: string): Promise; deleteMessages(messageIDs: BigString[], reason?: string): Promise; editMessage(messageID: BigString, content: MessageContentEdit): Promise; getMembers(): Promise; getMessage(messageID: BigString): Promise; getMessageReaction(messageID: BigString, reaction: string, options?: GetMessageReactionOptions): Promise; getMessages(options: GetMessagesOptions): Promise; getPins(): Promise; join(userID?: BigString): Promise; leave(userID: BigString): Promise; pinMessage(messageID: BigString): Promise; purge(options: PurgeChannelOptions): Promise; removeMessageReaction(messageID: BigString, reaction: string, userID?: BigString): Promise; removeMessageReactionEmoji(messageID: BigString, reaction: string): Promise; removeMessageReactions(messageID: BigString): Promise; sendTyping(): Promise; unpinMessage(messageID: BigString): Promise; /** * @deprecated Use deleteMessage instead */ unsendMessage(messageID: BigString): Promise; toJSON(props?: string[]): Record; } export default ThreadChannel; //# sourceMappingURL=Thread.d.ts.map