src/structures/Collector.js
/**
	 * Called to handle the collection of a message
	 * @param {Message} message The message to collect
	 * @emits Collector#collect
	 */
Called to handle the collection of a message
@param {Message} message The message to collect
@emits Collector#collect
Called to handle the collection of a message @param { Message } message The message to collect @emits Collector#collect
onCollect(message) {
		if (this.channel && message.channel !== this.channel) return;
		if (!this.options.filter(message)) return;
		this.collected.set(++this.responses, message);
		this.emit('collect', message);
		if (this.options.once === true) this.emit('end', this.collected);
		else if (this.options.max === this.responses) this.emit('end', this.collected);
	}
onCollect ( message ) { if ( this . channel && message . channel !== this . channel ) return ; if ( ! this . options . filter ( message ) ) return ; this . collected . set ( ++ this . responses , message ) ; this . emit ( 'collect' , message ) ; if ( this . options . once === true ) this . emit ( 'end' , this . collected ) ; else if ( this . options . max === this . responses ) this . emit ( 'end' , this . collected ) ; }
Called to handle the collection of a message
 @param {Message} message The message to collect
 @emits Collector#collect
Called to handle the collection of a message @param { Message } message The message to collect @emits Collector#collect