Constructors
constructor
- new ChannelCreator(client): ChannelCreator
Properties
Private
client
client: Client<boolean>
Methods
createCategoryChannel
- createCategoryChannel(guild, name): Promise<CategoryChannel>
Returns Promise<CategoryChannel>
- A promise that resolves with the created category channel.
createTextChannel
- createTextChannel(guild, name): Promise<TextChannel>
Returns Promise<TextChannel>
- A promise that resolves with the created text channel.
createVoiceChannel
- createVoiceChannel(guild, name): Promise<VoiceChannel>
Returns Promise<VoiceChannel>
- A promise that resolves with the created voice channel.
deleteChannel
- deleteChannel(channel): Promise<void>
Parameters
channel: TextChannel | CategoryChannel | VoiceChannel
Returns Promise<void>
- A promise that resolves when the channel is deleted.
moveChannel
- moveChannel(channel, newParent): Promise<void>
Parameters
channel: TextChannel | CategoryChannel | VoiceChannel
newParent: CategoryChannel
Returns Promise<void>
- A promise that resolves when the channel is moved.
renameChannel
- renameChannel(channel, newName): Promise<void>
Parameters
channel: TextChannel | CategoryChannel | VoiceChannel
newName: string
Returns Promise<void>
- A promise that resolves when the channel is renamed.
The ChannelCreator class provides methods to create, delete, rename, and move channels in a Discord guild.