Skip to main content

Class: PartialChannel

Hierarchy

  • ChannelMethods

    PartialChannel

Constructors

constructor

new PartialChannel(app, raw)

Parameters

NameType
appApp
rawAPIPartialChannel

Overrides

ChannelMethods.constructor

Defined in

packages/disploy/src/structs/PartialChannel.ts:23

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/PartialChannel.ts:11


id

id: string

The ID of the channel.

Inherited from

ChannelMethods.id

Defined in

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


name

name: null | string

The name of the channel.

Defined in

packages/disploy/src/structs/PartialChannel.ts:16


type

type: ChannelType

The type of the channel.

Defined in

packages/disploy/src/structs/PartialChannel.ts:21

Methods

delete

delete(): Promise<void>

Deletes the channel.

Returns

Promise<void>

Inherited from

ChannelMethods.delete

Defined in

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


fetch

fetch(): Promise<DiscordChannel>

Fetch the full channel.

Returns

Promise<DiscordChannel>

The full channel.

Defined in

packages/disploy/src/structs/PartialChannel.ts:35


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