mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Fix removeListener call (#762)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
34168eb832
commit
1fcc618532
@@ -101,8 +101,8 @@ class MessageCollector extends EventEmitter {
|
||||
get next() {
|
||||
return new Promise((resolve, reject) => {
|
||||
const cleanup = () => {
|
||||
this.removeListener(onMessage);
|
||||
this.removeListener(onEnd);
|
||||
this.removeListener('message', onMessage);
|
||||
this.removeListener('end', onEnd);
|
||||
};
|
||||
|
||||
const onMessage = (...args) => {
|
||||
|
||||
Reference in New Issue
Block a user