Method DeleteSoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteSoundboardSoundAsync(ulong, string?)
Deletes a soundboard sound from the guild.
public Task DeleteSoundboardSoundAsync(ulong soundId, string? reason = null)
Parameters
soundId
ulongThe ID of the sound to delete.
reason
stringThe reason for deleting the sound, to be logged in the audit log. Optional.
Returns
- Task
A task representing the deletion operation.
Exceptions
- NotFoundException
Thrown when the soundboard sound cannot be found.
- UnauthorizedException
Thrown when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.