Method GetSoundboardSoundAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetSoundboardSoundAsync(ulong, CancellationToken)
Gets a soundboard sound by its ID.
public Task<DiscordSoundboardSound> GetSoundboardSoundAsync(ulong soundId, CancellationToken cancellationToken = default)
Parameters
soundIdulongThe ID of the sound to retrieve.
cancellationTokenCancellationTokenA token to cancel the request.
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.