/** @module TextChannel */ import TextableChannel from "./TextableChannel"; import type AnnouncementChannel from "./AnnouncementChannel"; import type PublicThreadChannel from "./PublicThreadChannel"; import type PrivateThreadChannel from "./PrivateThreadChannel"; import type { ChannelTypes } from "../Constants"; import type Client from "../Client"; import type { ArchivedThreads, EditTextChannelOptions, FollowedChannel, GetArchivedThreadsOptions, RawPrivateThreadChannel, RawPublicThreadChannel, RawTextChannel } from "../types/channels"; import type { JSONTextChannel } from "../types/json"; import TypedCollection from "../util/TypedCollection"; /** Represents a guild text channel. */ export default class TextChannel extends TextableChannel { /** The threads in this channel. */ threads: TypedCollection; type: ChannelTypes.GUILD_TEXT; constructor(data: RawTextChannel, client: Client); /** * Convert this text channel to a announcement channel. */ convert(): Promise; /** * Edit this channel. * @param options The options for editing the channel */ edit(options: EditTextChannelOptions): Promise; /** * Follow an announcement channel to this channel. * @param webhookChannelID The ID of the channel to follow the announcement channel to. */ followAnnouncement(webhookChannelID: string): Promise; /** * Get the private archived threads the current user has joined in this channel. * @param options The options for getting the joined private archived threads. */ getJoinedPrivateArchivedThreads(options?: GetArchivedThreadsOptions): Promise>; /** * Get the private archived threads in this channel. * @param options The options for getting the private archived threads. */ getPrivateArchivedThreads(options?: GetArchivedThreadsOptions): Promise>; toJSON(): JSONTextChannel; }