Results

Namespace

Type

Base channel class.

All channels have an id and type.

Note: Pylon should never provide an instance of discord.Channel directly. You will always be given a more specific child class.

A channel can be type-refined by checking its discord.Channel.type type against discord.Channel.Type.

Hierarchy

Index

Enumerations

Interfaces

Type aliases

Properties

Methods

Type aliases

Static AnyChannel

Represents any channel type on Discord.

Static AnyGuildChannel

Represents any channel type on Discord that exists within a discord.Guild.

Properties

Readonly id

Discord's unique identifier for this channel. This value never changes.

Readonly type

type: Type

The type of channel this is. See discord.Channel.AnyChannel for a complete list of channel types.

Methods

delete

  • delete(): Promise<void>
  • Attempts to delete the channel.

    If an error occurs, a discord.ApiError exception is thrown.

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc