Skip to main content

Class: BaseChannel

Hierarchy

Constructors

constructor

new BaseChannel(app, raw)

Parameters

NameType
appApp
rawAPIChannel

Overrides

ChannelMethods.constructor

Defined in

packages/disploy/src/structs/BaseChannel.ts:17

Properties

app

app: App

Inherited from

ChannelMethods.app

Defined in

packages/disploy/src/structs/Base.ts:4


createdTimestamp

createdTimestamp: number

Timestamp of when the channel was created.

Defined in

packages/disploy/src/structs/BaseChannel.ts:10


id

id: string

The ID of the channel.

Inherited from

ChannelMethods.id

Defined in

packages/disploy/src/structs/ChannelMethods.ts:9


type

Abstract type: ChannelType

The type of the channel.

Defined in

packages/disploy/src/structs/BaseChannel.ts:15

Methods

delete

delete(): Promise<void>

Deletes the channel.

Returns

Promise<void>

Inherited from

ChannelMethods.delete

Defined in

packages/disploy/src/structs/ChannelMethods.ts:19


toString

toString(): string

Returns a string that represents the Channel object as a mention.

Example

interaction.reply(You chose ${interaction.channel}); // => You chose #general

Returns

string

A string that represents the Channel object as a mention.

Inherited from

ChannelMethods.toString

Defined in

packages/disploy/src/structs/ChannelMethods.ts:28