Method GetSoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetSoundboardSoundAsync(ulong)
Gets a soundboard sound by its ID.
public Task<DiscordSoundboardSound> GetSoundboardSoundAsync(ulong soundId)
Parameters
soundId
ulongThe ID of the sound to retrieve.
Returns
- Task<DiscordSoundboardSound>
The requested DiscordSoundboardSound.
Exceptions
- NotFoundException
Thrown when the soundboard sound cannot be found.
- ServerErrorException
Thrown when Discord is unable to process the request.