Skip to content

Commit

Permalink
[New] Changed listqueue to queue
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 1, 2021
1 parent 46acf62 commit 604e7a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions commands/music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const { embedMessage } = require("../../modules/embedSimple");

module.exports = {
data: new SlashCommandBuilder()
.setName("listqueue")
.setName("queue")
.setDescription("Shows the current queue"),

async execute(interaction, client) {
const queue = client.player.getQueue(interaction.guild);
await interaction.deferReply();
const queue = client.player.getQueue(interaction.guild);

if (!queue) {
return await interaction.followUp({
Expand All @@ -27,7 +27,6 @@ module.exports = {
author: {
name: `${interaction.user.username}`,
icon_url: `${interaction.user.avatarURL()}`,
url: "https://github.com/naseif/",
},
description: `${tracks.join("\n")}`,
timestamp: new Date(),
Expand Down

0 comments on commit 604e7a9

Please sign in to comment.