🐛 Add return before emit
This commit is contained in:
parent
25412bc54e
commit
a6adc0e41f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue