Skip to main content

Class: ChannelManager

Hierarchy

  • Base

    ChannelManager

Constructors

constructor

new ChannelManager(app, guildId?)

A manager for fetching channels.

Parameters

NameTypeDescription
appApp
guildId?stringThe ID of the guild to lock the manager to.

Overrides

Base.constructor

Defined in

packages/disploy/src/structs/managers/ChannelManager.ts:16

Properties

app

app: App

Inherited from

Base.app

Defined in

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


guildId

Private Optional guildId: string

Defined in

packages/disploy/src/structs/managers/ChannelManager.ts:9

Methods

constructChannel

constructChannel(raw): DiscordChannel

Construct a channel from a raw channel object.

Parameters

NameTypeDescription
rawAPIChannelThe raw channel data.

Returns

DiscordChannel

A constructed channel structure.

Defined in

packages/disploy/src/structs/managers/ChannelManager.ts:37


fetch

fetch(id): Promise<DiscordChannel>

Fetch a channel by its ID.

Parameters

NameTypeDescription
idstringThe ID of the channel to fetch.

Returns

Promise<DiscordChannel>

A constructed channel structure.

Defined in

packages/disploy/src/structs/managers/ChannelManager.ts:26