Method CloneAsync
- Namespace
- Dis
Cat .EntitiesSharp
- 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.
Parameters
reason
stringReason for audit logs.
Returns
- Task<Discord
Channel > Newly-created channel.
Exceptions
- Unauthorized
Exception Thrown when the client does not have the Manage
Channels permission.- Not
Found Exception Thrown when the channel does not exist.
- Bad
Request Exception Thrown when an invalid parameter was provided.
- Server
Error Exception Thrown when Discord is unable to process the request.