Skip to content

Commit

Permalink
chore: Add "self mute" and "self deaf" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Apr 12, 2024
1 parent 7845287 commit 0d79028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lavalink4NET.DiscordNet/DiscordClientWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public ValueTask SendVoiceUpdateAsync(ulong guildId, ulong? voiceChannelId, bool

var requestOptions = new RequestOptions { CancelToken = cancellationToken, };

// WARNING! The parameters "self mute" and "self deaf" are accidentally swapped in the method signature of the SendVoiceStateUpdateAsync method.
// This should be fixed when migrating to a non-reflection based approach which should enforce a major version bump to not break existing bots.
var arguments = new object?[]
{
guildId, // Guild Id
Expand Down

0 comments on commit 0d79028

Please sign in to comment.