Skip to content

Commit

Permalink
add method skip current track
Browse files Browse the repository at this point in the history
  • Loading branch information
hqtruong27 committed Jan 22, 2025
1 parent 829d290 commit aa7cfad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DisCatSharp.Lavalink/LavalinkGuildPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ public async Task<LavalinkGuildPlayer> StopAsync()
return this;
}

/// <summary>
/// Skips the current track.
/// </summary>
/// <returns>The updated guild player.</returns>
public Task<LavalinkGuildPlayer> SkipAsync() => this.StopAsync();

/// <summary>
/// Directly plays a song by url.
/// </summary>
Expand Down

0 comments on commit aa7cfad

Please sign in to comment.