Skip to content

Commit

Permalink
Update autoplay.js
Browse files Browse the repository at this point in the history
Fixed autoplay
  • Loading branch information
adh319 authored Sep 28, 2024
1 parent c9b7463 commit e2dbf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/interaction/setting/autoplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
devOnly: false,
run: async (client, interaction, player) => {
const embed = new EmbedBuilder().setColor(client.config.embedColor);
const track = player.queue.isEmpty() ? player.queue.current : player.queue[player.queue.size - 1];
const track = player.queue.isEmpty ? player.queue.current : player.queue[player.queue.size - 1];

if (!isYoutube(track)) {
embed.setDescription(
Expand Down

0 comments on commit e2dbf00

Please sign in to comment.