From 1d4750aa46e1d5a38c4486bef8c880ae1d58ae96 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 19 Jul 2020 23:38:50 +0300 Subject: [PATCH] Update play.js --- src/struct/funcs/play.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/struct/funcs/play.js b/src/struct/funcs/play.js index 27fb910e..ced6f416 100644 --- a/src/struct/funcs/play.js +++ b/src/struct/funcs/play.js @@ -67,8 +67,11 @@ module.exports = async function (guild, song, client, seek, play) { }); const dispatcher = queue.connection.play(stream, streamConfig.options) + dispatcher.setVolume(queue.volume / 100); + require("../../events/dispatcherEvents/handler")(client, dispatcher, queue, guild); + if ((client.global.db.guilds[guild.id].startPlaying && play) || play) { if (song.type !== "ytdl" && song.type !== "spotify") return; const embed = new Discord.MessageEmbed()