Method ModifySoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifySoundboardSoundAsync(ulong, Action<SoundboardSoundEditModel>)
Modifies an existing soundboard sound.
public Task<DiscordSoundboardSound> ModifySoundboardSoundAsync(ulong soundId, Action<SoundboardSoundEditModel> action)
Parameters
soundId
ulongThe ID of the sound to modify.
action
Action<SoundboardSoundEditModel>The action to configure the soundboard sound edit model.
Returns
- Task<DiscordSoundboardSound>
The updated DiscordSoundboardSound.
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.