Table of Contents

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 ulong

The ID of the sound to delete.

reason string

The 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.