mirror of
https://github.com/musix-org/musix-oss
synced 2026-10-16 05:13:44 +00:00
Update handleVideo.js
This commit is contained in:
1 parent
f1b93642c3
commit
2caac65a35
1 file changed
-7
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user