diff --git a/commands/seek.js b/commands/seek.js index 6b81fc4c..cbf6f8e8 100644 --- a/commands/seek.js +++ b/commands/seek.js @@ -16,7 +16,7 @@ module.exports = { if (isNaN(pos)) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But you need to enter a valid __number__.'); if (pos < 0) return msg.channel.send('<:redx:674263474704220182> The seeking point needs to be a positive number!'); if (pos > data.length_seconds) return msg.channel.send(`<:redx:674263474704220182> The lenght of this song is ${data.length_seconds} seconds! You can't seek further than that!`); - serverQueue.connection.dispatcher.end('seek'); + serverQueue.connection.dispatcher.end(); serverQueue.endReason = "seek"; client.funcs.play(msg.guild, serverQueue.songs[0], client, msg, pos, false); } diff --git a/commands/skip.js b/commands/skip.js index f46ef98a..82bbd841 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -29,7 +29,7 @@ module.exports = { function skipSong(serverQueue, msg) { msg.channel.send('<:skip:674685614221688832> Skipped the song!'); serverQueue.endReason = "skip"; - serverQueue.connection.dispatcher.end('skipped'); + serverQueue.connection.dispatcher.end(); }; function vote(serverQueue, msg) { serverQueue.votesNeeded = Math.floor(serverQueue.voiceChannel.members.size / 2); diff --git a/commands/skipto.js b/commands/skipto.js index f82ba711..c7fdda04 100644 --- a/commands/skipto.js +++ b/commands/skipto.js @@ -20,7 +20,7 @@ module.exports = { serverQueue.songs.shift(); } serverQueue.endReason = "skipto"; - serverQueue.connection.dispatcher.end('skipto'); + serverQueue.connection.dispatcher.end(); } } }; diff --git a/commands/stop.js b/commands/stop.js index 9d2ff1a1..11aed411 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -12,7 +12,7 @@ module.exports = { serverQueue.songs = []; serverQueue.looping = false; serverQueue.endReason = "stop"; - serverQueue.connection.dispatcher.end('Stopped'); + serverQueue.connection.dispatcher.end(); msg.channel.send('<:stop:674685626108477519> Stopped the music!') } }