GuildChannelManager
GuildChannelManager ⇐ ChannelManager
Section titled “GuildChannelManager ⇐ ChannelManager”Represents a manager for guild channels.
Kind: global class
Extends: ChannelManager
- GuildChannelManager ⇐
ChannelManager- new GuildChannelManager(guildId, client)
- .cache ⇒
Array - .create([options]) ⇒
Promise.<Channel> - .modifyPosition([options]) ⇒
Promise
new GuildChannelManager(guildId, client)
Section titled “new GuildChannelManager(guildId, client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| guildId | string | The ID of the guild. |
| client | Client | The client object. |
guildChannelManager.cache ⇒ Array
Section titled “guildChannelManager.cache ⇒ Array”Retrieves the cache for the current guild.
Kind: instance property of GuildChannelManager
Returns: Array - - The filtered cache objects for the current guild.
guildChannelManager.create([options]) ⇒ Promise.<Channel>
Section titled “guildChannelManager.create([options]) ⇒ Promise.<Channel>”Creates a new channel in the guild.
Kind: instance method of GuildChannelManager
Returns: Promise.<Channel> - A promise that resolves with the created channel.
| Param | Type | Description |
|---|---|---|
| [options] | Object | The options for creating the channel. |
| [options.reason] | string | The reason for creating the channel. |
guildChannelManager.modifyPosition([options]) ⇒ Promise
Section titled “guildChannelManager.modifyPosition([options]) ⇒ Promise”Modifies the position of channels in a guild.
Kind: instance method of GuildChannelManager
Returns: Promise - A promise that resolves when the position is modified.
| Param | Type | Description |
|---|---|---|
| [options] | Object | The options for modifying the position. |
| [options.reason] | string | The reason for modifying the position. |
| [options.data] | Array | The data containing the channels to modify. |