Fix collectors and make guild sync add previously unknown members

This commit is contained in:
Amish Shah
2016-09-03 21:21:10 +01:00
parent 09dee3d46a
commit 7ff2568cfc
5 changed files with 8 additions and 6 deletions

View File

@@ -21,7 +21,6 @@ const EventEmitter = require('events').EventEmitter;
* ```js
* {
* time: null, // time in milliseconds. If specified, the collector ends after this amount of time.
* allowSelf: false, // whether or not the filter should take messages from the logged in client.
* max: null, // the maximum amount of messages to handle before ending.
* }
* ```
@@ -77,9 +76,6 @@ class MessageCollector extends EventEmitter {
if (this.channel ? this.channel.id !== message.channel.id : false) {
return false;
}
if (message.author.id === this.channel.client.user.id && !this.options.allowSelf) {
return false;
}
if (this.filter(message, this)) {
this.collected.set(message.id, message);
/**