Skip to content

Commit

Permalink
fix: Fix breaking changes in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Aug 15, 2023
1 parent f8147b0 commit ff00691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions samples/Lavalink4NET.Discord_NET.ExampleBot/MusicModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public async Task Disconnect()
return;
}

// when using StopAsync(true) the player also disconnects and clears the track queue.
// DisconnectAsync only disconnects from the channel.
await player.StopAsync(true).ConfigureAwait(false);
await player.DisconnectAsync().ConfigureAwait(false);
await RespondAsync("Disconnected.").ConfigureAwait(false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public async Task Disconnect()
return;
}

// when using StopAsync(true) the player also disconnects and clears the track queue.
// DisconnectAsync only disconnects from the channel.
await player.StopAsync(true).ConfigureAwait(false);
await player.DisconnectAsync().ConfigureAwait(false);
await RespondAsync("Disconnected.").ConfigureAwait(false);
}

Expand Down

0 comments on commit ff00691

Please sign in to comment.