Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildTextChannel<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Readonly client

client: T

deleted

deleted: boolean = false

Whether the DM channel is deleted.

since

0.0.1

Readonly guild

guild: Guild

The guild this channel belongs to.

since

0.0.1

Readonly id

id: string

The ID of this channel.

since

0.0.1

Readonly invites

The invites store for this channel.

since

0.0.3

lastMessageID

lastMessageID: string | null

The id of the last message sent in this channel (may not point to an existing or valid message).

since

0.0.1

lastPinTimestamp

lastPinTimestamp: string | null

When the last pinned message was pinned.

since

0.0.1

Readonly messages

messages: MessageStore

The message store for this channel.

since

0.0.1

name

name: string

The name of the channel (2-100 characters).

since

0.0.1

nsfw

nsfw: boolean

Whether or not the channel is nsfw.

since

0.0.1

parentID

parentID: string | null

Id of the parent category for a channel (each parent category can contain up to 50 channels).

since

0.0.1

permissionOverwrites

permissionOverwrites: OverwriteStore

Explicit permission overwrites for members and roles.

since

0.0.1

see

https://discord.com/developers/docs/resources/channel#overwrite-object

Readonly pins

The pins store for this channel.

since

0.0.4

position

position: number

Sorting position of the channel.

since

0.0.1

topic

topic: string | null

The channel topic (0-1024 characters).

since

0.0.1

Readonly Abstract type

type: ChannelType

Readonly typing

typing: Typing

The typing handler for this channel.

since

0.0.1

Accessors

attachable

  • get attachable(): boolean | null

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

deletable

  • get deletable(): boolean | null

embedable

  • get embedable(): boolean | null

manageable

  • get manageable(): boolean | null

parent

postable

  • get postable(): boolean | null

synced

  • get synced(): boolean | null

viewable

  • get viewable(): boolean | null

Methods

Protected _patch

  • _patch(data: APIChannelData): this

awaitMessages

clone

  • clone(): this

delete

  • delete(requestOptions?: RequestOptions): Promise<this>

modify

permissionsFor

send

syncPermissions

  • syncPermissions(requestOptions?: RequestOptions): Promise<this>

toJSON

  • toJSON(): Record<string, any>

toString

  • toString(): string

valueOf

  • valueOf(): string

Static create

  • create(client: Client, data: APIChannelData, ...extra: keyof unknown[]): Channel | null

Generated using TypeDoc