mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Docs fixes (#1398)
* fix collector docs * fix message collector param type
This commit is contained in:
@@ -8,12 +8,12 @@ const Collector = require('./interfaces/Collector');
|
||||
|
||||
/**
|
||||
* Collects messages on a channel.
|
||||
* @implements {Collector}
|
||||
* @extends {Collector}
|
||||
*/
|
||||
class MessageCollector extends Collector {
|
||||
|
||||
/**
|
||||
* @param {TextBasedChannel} channel The channel.
|
||||
* @param {TextChannel|DMChannel|GroupDMChannel} channel The channel.
|
||||
* @param {CollectorFilter} filter The filter to be applied to this collector.
|
||||
* @param {MessageCollectorOptions} options The options to be applied to this collector.
|
||||
* @emits MessageCollector#message
|
||||
|
||||
@@ -10,7 +10,7 @@ const Collection = require('../util/Collection');
|
||||
|
||||
/**
|
||||
* Collects reactions on messages.
|
||||
* @implements {Collector}
|
||||
* @extends {Collector}
|
||||
*/
|
||||
class ReactionCollector extends Collector {
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ const EventEmitter = require('events').EventEmitter;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Interface for defining a new Collector.
|
||||
* @interface
|
||||
* Abstract class for defining a new Collector.
|
||||
* @abstract
|
||||
*/
|
||||
class Collector extends EventEmitter {
|
||||
constructor(client, filter, options = {}) {
|
||||
|
||||
Reference in New Issue
Block a user