🐛 Add return before emit

This commit is contained in:
Androz2091 2020-11-03 22:10:34 +01:00
parent 25412bc54e
commit a6adc0e41f

View file

@ -171,7 +171,7 @@ class Player extends EventEmitter {
}).catch(() => {})
}
if (tracks.length === 0) this.emit('noResults', message, query)
if (tracks.length === 0) return this.emit('noResults', message, query)
this.emit('searchResults', message, query, tracks)