Skip to main content

Class: NewsChannel

Hierarchy

Constructors

constructor

new NewsChannel(client, data)

Parameters

NameType
clientClient
dataAPITextChannel

Inherited from

TextChannel.constructor

Defined in

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

Properties

client

Readonly client: Client

Inherited from

TextChannel.client

Defined in

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


guild

guild: Guild

Inherited from

TextChannel.guild

Defined in

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


id

id: string

Inherited from

TextChannel.id

Defined in

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


lastMessageId

lastMessageId: null | string

Inherited from

TextChannel.lastMessageId

Defined in

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


messages

messages: Collection<string, Message>

Inherited from

TextChannel.messages

Defined in

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


name

name: string

Inherited from

TextChannel.name

Defined in

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


nsfw

nsfw: boolean

Inherited from

TextChannel.nsfw

Defined in

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


parentId

parentId: null | string

Inherited from

TextChannel.parentId

Defined in

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


permissionOverwrites

permissionOverwrites: PermissionOverwrite[] = []

Inherited from

TextChannel.permissionOverwrites

Defined in

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


position

position: number

Inherited from

TextChannel.position

Defined in

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


rateLimitPerUser

rateLimitPerUser: null

Overrides

TextChannel.rateLimitPerUser

Defined in

packages/libcord/src/structures/channels/NewsChannel.ts:5


threads

threads: default

Inherited from

TextChannel.threads

Defined in

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


topic

topic: null | string

Inherited from

TextChannel.topic

Defined in

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


type

Readonly type: News = ChannelTypes.News

Overrides

TextChannel.type

Defined in

packages/libcord/src/structures/channels/NewsChannel.ts:6

Accessors

mention

get mention(): string

Returns

string

Inherited from

TextChannel.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>

Inherited from

TextChannel.createMessage

Defined in

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

createMessage(msg): Promise<Message>

Parameters

NameType
msgstring | Embed | MessageOptions

Returns

Promise<Message>

Inherited from

TextChannel.createMessage

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

TextChannel.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>

Inherited from

TextChannel.send

Defined in

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