Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Channel<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 id

id: string

The ID of this channel.

since

0.0.1

Readonly Abstract type

type: ChannelType

Static Private Readonly types

types: Map<ChannelType, "Ban" | "CategoryChannel" | "Channel" | "ClientUser" | "DMChannel" | "Guild" | "GuildChannel" | "GuildEmoji" | "GuildMember" | "Integration" | "Invite" | "Message" | "MessageReaction" | "NewsChannel" | "Overwrite" | "Presence" | "Role" | "StoreChannel" | "Team" | "TeamMember" | "TextChannel" | "User" | "VoiceChannel" | "VoiceState"> = new Map<ChannelType, keyof ExtenderStructures>([[ChannelType.GuildText, 'TextChannel'],[ChannelType.DM, 'DMChannel'],[ChannelType.GuildVoice, 'VoiceChannel'],[ChannelType.GroupDM, 'Channel'],[ChannelType.GuildCategory, 'CategoryChannel'],[ChannelType.GuildNews, 'NewsChannel'],[ChannelType.GuildStore, 'StoreChannel']])

Accessors

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

Methods

Protected Abstract _patch

  • _patch(data: unknown): this

clone

  • clone(): 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