1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Update handleVideo.js

This commit is contained in:
MatteZ02 2020-01-01 21:39:29 +02:00
parent f1b93642c3
commit 2caac65a35

View File

@ -7,13 +7,6 @@ module.exports = async function (video, message, voiceChannel, client, playlist
author: message.author
}
const serverQueue = client.queue.get(message.guild.id);
if (client.global.db.guilds[message.guild.id].defaultVolume === undefined) {
client.global.db.guilds[message.guild.id] = {
prefix: client.global.db.guilds[message.guild.id].prefix,
defaultVolume: 5,
};
return message.channel.send(':x: `Error:` the default volume is undefined for this server. Please try again after a while.');
}
if (!serverQueue) {
const construct = {
textChannel: message.channel,