Table of Contents

Method DeleteSoundboardSoundAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteSoundboardSoundAsync(string?)

Deletes the soundboard sound.

public Task DeleteSoundboardSoundAsync(string? reason = null)

Parameters

reason string

The reason for deleting the sound, to be logged in the audit log. Optional.

Returns

Task

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.