Method DeleteAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteAsync(string?, CancellationToken)
Deletes this scheduled event exception.
public Task DeleteAsync(string? reason = null, CancellationToken cancellationToken = default)
Parameters
reasonstringThe audit log reason.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- UnauthorizedException
Thrown when the client does not have the correct permissions.
- NotFoundException
Thrown when the event or exception does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.