Method DeleteSoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteSoundboardSoundAsync(string?, CancellationToken)
Deletes the soundboard sound.
public Task DeleteSoundboardSoundAsync(string? reason = null, CancellationToken cancellationToken = default)
Parameters
reasonstringThe reason for deleting the sound, to be logged in the audit log. Optional.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- NotFoundException
Throws when the soundboard sound cannot be found
- UnauthorizedException
Throws when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.