import type { Client } from '../client/Client'; import { MessageManager } from '../managers/MessageManager'; import type { MessageOptions } from './Channel'; import type { Guild } from './Guild'; import { GuildChannel } from './GuildChannel'; import { Message } from './Message'; /** * Represents a text channel on Discord * @extends {GuildChannel} */ declare class TextChannel extends GuildChannel { type: 'GUILD_TEXT'; topic: string | null; rateLimitPerUser: number; messages: MessageManager; constructor(client: Client, data: any, guild?: Guild); /** * Changes the topic of the channel * @param {?string} name - The new channel topic * @param {string} [reason] - The reason for changing the channel topic * @returns {Promise} */ setTopic(topic?: string, reason?: string): Promise; /** * Changes the channel slowmode * @param {number} [seconds=0] - New slowmode duration * @param {string} [reason] - Reason for changing the channel slowmode */ setRateLimitPerUser(seconds?: number, reason?: string): Promise; /** * Sends a message to this channel * @param {string|MessagePayload} content * @example * message.reply(`Hello, ${message.author}!`); * @example * message.reply({ content: `Hello, ${message.author}!` }); * @returns {Promise} */ send(content: MessageOptions): Promise; parseData(data: any): any; _update(data: any): TextChannel; } export { TextChannel }; //# sourceMappingURL=TextChannel.d.ts.map