Table of Contents

Method SendSoundboardSoundAsync

Namespace
DisCatSharp.Net
Assembly
DisCatSharp.dll

SendSoundboardSoundAsync(ulong, ulong, ulong?, CancellationToken)

Sends a soundboard sound to a voice channel the user is connected to.

public Task SendSoundboardSoundAsync(ulong channelId, ulong soundId, ulong? sourceGuildId = null, CancellationToken cancellationToken = default)

Parameters

channelId ulong

The ID of the channel to send the sound to.

soundId ulong

The ID of the soundboard sound to play.

sourceGuildId ulong?

The ID of the guild the soundboard sound is from, required to play sounds from different servers. Optional.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

A task representing the asynchronous operation.