Skip to content

Commit

Permalink
feat: Make "could not find guild" error message more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Mar 9, 2024
1 parent 583767c commit 163a479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lavalink4NET.DiscordNet/DiscordClientWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public ValueTask SendVoiceUpdateAsync(ulong guildId, ulong? voiceChannelId, bool
{
cancellationToken.ThrowIfCancellationRequested();

var guild = _baseSocketClient.GetGuild(guildId) ?? throw new InvalidOperationException("Could not find associated guild.");
var guild = _baseSocketClient.GetGuild(guildId) ?? throw new InvalidOperationException($"Could not find associated guild (GuildId: {guildId}, VoiceChannelId: {voiceChannelId}).");
var client = _discordProperty.GetValue(guild);
var apiClient = _discordApiClientProperty.GetValue(client);

Expand Down

0 comments on commit 163a479

Please sign in to comment.