mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 09:26:00 +00:00
patched the error if skipping when nothing is playing
This commit is contained in:
@ -9,6 +9,7 @@ module.exports = {
|
||||
const serverQueue = client.queue.get(message.guild.id);
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
const { voiceChannel } = message.member;
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
||||
let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url));
|
||||
if (serverQueue.playing) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
|
Reference in New Issue
Block a user