Method DeleteSoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteSoundboardSoundAsync(string?)
Deletes the soundboard sound.
public Task DeleteSoundboardSoundAsync(string? reason = null)
Parameters
reason
stringThe reason for deleting the sound, to be logged in the audit log. Optional.
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.