Class: ChannelManager
Hierarchy
Base
↳
ChannelManager
Constructors
constructor
• new ChannelManager(app
, guildId?
)
A manager for fetching channels.
Parameters
Name | Type | Description |
---|---|---|
app | App | |
guildId? | string | The 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
Name | Type | Description |
---|---|---|
raw | APIChannel | The raw channel data. |
Returns
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
Name | Type | Description |
---|---|---|
id | string | The ID of the channel to fetch. |
Returns
Promise
<DiscordChannel
>
A constructed channel structure.
Defined in
packages/disploy/src/structs/managers/ChannelManager.ts:26