Table of Contents

Method CloneAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CloneAsync(string)

Clones this channel. This operation will create a channel with identical settings to this one. Note that this will not copy messages or tags.

public Task<DiscordChannel> CloneAsync(string reason = null)

Parameters

reason string

Reason for audit logs.

Returns

Task<DiscordChannel>

Newly-created channel.

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageChannels permission.

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.