Reference
Classes
Textchannel

Class: TextChannel

Extends

Constructors

new TextChannel()

new TextChannel(client, guild, data): TextChannel

Parameters

ParameterType
clientClient
guildGuild
dataany

Returns

TextChannel

Overrides

GuildChannel.constructor

Defined in

src/core/classes/TextChannel.ts:26 (opens in a new tab)

Properties

PropertyModifierTypeInherited fromDefined in
cachepublicTextChannelCacheManager-src/core/classes/TextChannel.ts:22 (opens in a new tab)
guildpublicGuildGuildChannel.guildsrc/core/classes/GuildChannel.ts:11 (opens in a new tab)
idpublicstringGuildChannel.idsrc/core/classes/GuildChannel.ts:5 (opens in a new tab)
lastMessageId?publicstring-src/core/classes/TextChannel.ts:21 (opens in a new tab)
namepublicstringGuildChannel.namesrc/core/classes/GuildChannel.ts:6 (opens in a new tab)
nsfwpublicbooleanGuildChannel.nsfwsrc/core/classes/GuildChannel.ts:8 (opens in a new tab)
positionpublicnumberGuildChannel.positionsrc/core/classes/GuildChannel.ts:9 (opens in a new tab)
topic?publicnull | stringGuildChannel.topicsrc/core/classes/GuildChannel.ts:10 (opens in a new tab)
typepublicnumberGuildChannel.typesrc/core/classes/GuildChannel.ts:7 (opens in a new tab)

Methods

deleteMessage()

deleteMessage(id): Promise<RequestReponse>

Parameters

ParameterType
idstring

Returns

Promise<RequestReponse>

Defined in

src/core/classes/TextChannel.ts:78 (opens in a new tab)


sendMessage()

sendMessage(content, options?): Promise<Message>

Parameters

ParameterType
contentstring
options?IMessageSendOptions

Returns

Promise<Message>

Defined in

src/core/classes/TextChannel.ts:61 (opens in a new tab)