Skip to content

GuildChannelManager

GuildChannelManager ⇐ ChannelManager

Represents a manager for guild channels.

Kind: global class
Extends: ChannelManager

new GuildChannelManager(guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
guildIdstringThe ID of the guild.
clientClientThe client object.

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>

Creates a new channel in the guild.

Kind: instance method of GuildChannelManager
Returns: Promise.<Channel> - A promise that resolves with the created channel.

ParamTypeDescription
[options]ObjectThe options for creating the channel.
[options.reason]stringThe reason for creating the channel.

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.

ParamTypeDescription
[options]ObjectThe options for modifying the position.
[options.reason]stringThe reason for modifying the position.
[options.data]ArrayThe data containing the channels to modify.