Skip to content

Commit

Permalink
Merge pull request #155 from kalebbroo/dev
Browse files Browse the repository at this point in the history
Updated docs
  • Loading branch information
angelobreuer committed Apr 27, 2024
2 parents 0d79028 + a9d1acf commit a533a5f
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 a533a5f

Please sign in to comment.