Skip to main content

Class: TextChannel

Hierarchy

Constructors

constructor

new TextChannel(client, data)

Parameters

NameType
clientClient
dataAPITextChannel

Overrides

GuildChannel.constructor

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:25

Properties

client

Readonly client: Client

Inherited from

GuildChannel.client

Defined in

packages/libcord/src/structures/Base.ts:8


guild

guild: Guild

Inherited from

GuildChannel.guild

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:14


id

id: string

Inherited from

GuildChannel.id

Defined in

packages/libcord/src/structures/channels/Channel.ts:8


lastMessageId

lastMessageId: null | string

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:21


messages

messages: Collection<string, Message>

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:22


name

name: string

Inherited from

GuildChannel.name

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:13


nsfw

nsfw: boolean

Inherited from

GuildChannel.nsfw

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:15


parentId

parentId: null | string

Inherited from

GuildChannel.parentId

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:17


permissionOverwrites

permissionOverwrites: PermissionOverwrite[] = []

Inherited from

GuildChannel.permissionOverwrites

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:18


position

position: number

Inherited from

GuildChannel.position

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:16


rateLimitPerUser

rateLimitPerUser: null | number

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:20


threads

threads: default

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:23


topic

topic: null | string

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:19


type

Readonly type: Text | News

Overrides

GuildChannel.type

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:18

Accessors

mention

get mention(): string

Returns

string

Inherited from

GuildChannel.mention

Defined in

packages/libcord/src/structures/channels/Channel.ts:19

Methods

createMessage

createMessage(content): Promise<Message>

Sends a message in a text channel

Parameters

NameTypeDescription
contentstring | Embed | MessageOptionsthe content to send can be an embed, object or string

Returns

Promise<Message>

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:57

createMessage(msg): Promise<Message>

Parameters

NameType
msgstring | Embed | MessageOptions

Returns

Promise<Message>

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:60


edit

edit(options): Promise<undefined | VoiceChannel | GuildChannel | TextChannel | CategoryChannel>

Parameters

NameType
optionsChannelEditOptions

Returns

Promise<undefined | VoiceChannel | GuildChannel | TextChannel | CategoryChannel>

Inherited from

GuildChannel.edit

Defined in

packages/libcord/src/structures/channels/GuildChannel.ts:71


send

send(content): Promise<Message>

Sends a message in a text channel

Deprecated

Parameters

NameTypeDescription
contentstring | Embed | MessageOptionsthe content to send can be an embed, object or string

Returns

Promise<Message>

Defined in

packages/libcord/src/structures/channels/TextChannel.ts:49