Method DeleteAsync
- Namespace
- DSharp
Plus .Entities
- Assembly
- DSharpPlus.dll
DeleteAsync(string?)
Deletes this role.
Parameters
reason
stringReason as to why this role has been deleted.
Returns
- Task
Exceptions
- Unauthorized
Exception Thrown when the client does not have the Manage
Roles permission.- Not
Found Exception Thrown when the role 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.