Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalebbroo committed Apr 26, 2024
1 parent 0d79028 commit a9d1acf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/custom-players/handling-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public sealed class CustomPlayer : QueuedLavalinkPlayer
_textChannel = properties.Options.Value.TextChannel;
}

protected override async ValueTask OnTrackStartedAsync(LavalinkTrack track, CancellationToken cancellationToken = default)
protected override async ValueTask NotifyTrackStartedAsync(ITrackQueueItem track, CancellationToken cancellationToken = default)
{
await base
.OnTrackStartedAsync(track, cancellationToken)
.NotifyTrackStartedAsync(track, cancellationToken)
.ConfigureAwait(false);

// send a message to the text channel
await _textChannel
.SendMessageAsync($"Now playing: {track.Title}")
.SendMessageAsync($"Now playing: {track.Track.Title}")
.ConfigureAwait(false);
}
}
Expand Down

0 comments on commit a9d1acf

Please sign in to comment.