fix music fixer inside of play function
This commit is contained in:
parent
47f163dcab
commit
d585ffa45c
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ exports.getVideoByQuery = async function (client, query, message) {
|
|||
exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
||||
const guild = exports.getGuild(message.guild.id)
|
||||
guild.message = message
|
||||
|
||||
|
||||
// message.channel.startTyping()
|
||||
|
||||
if (!message.member.voice.channel && !guild.voiceChannel) {
|
||||
|
@ -105,7 +105,7 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
|||
guild.skippers = []
|
||||
guild.fixers = []
|
||||
// music not playing, something is in queue
|
||||
} else if (!guild.playing && !guild.dispatcher && guild.queue.length > 0) {
|
||||
} else if ((!guild.playing || !guild.dispatcher) && guild.queue.length > 0) {
|
||||
guild.queue = []
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue