From a9d1acf04c880e4b49abd0a6a267a1691ebce861 Mon Sep 17 00:00:00 2001 From: kalebbroo Date: Fri, 26 Apr 2024 19:23:40 -0400 Subject: [PATCH] Updated docs --- docs/docs/custom-players/handling-events.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/custom-players/handling-events.md b/docs/docs/custom-players/handling-events.md index c8b4572c..7143e057 100644 --- a/docs/docs/custom-players/handling-events.md +++ b/docs/docs/custom-players/handling-events.md @@ -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); } }