Method CloneAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.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.
public Task<DiscordChannel> CloneAsync(string reason = null)
Parameters
reason
stringReason 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.