Method ModifySoundboardSoundAsync
- Namespace
- Dis
Cat .EntitiesSharp
- 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<SoundboardSound >Edit Model The action to configure the soundboard sound edit model.
Returns
- Task<Discord
Soundboard >Sound The updated Discord
Soundboard .Sound
Exceptions
- Not
Found Exception Thrown when the soundboard sound cannot be found.
- Unauthorized
Exception Thrown when the client does not have the Manage
Guild permission.Expressions - Server
Error Exception Thrown when Discord is unable to process the request.