mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +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.
|
* Collects messages on a channel.
|
||||||
* @implements {Collector}
|
* @extends {Collector}
|
||||||
*/
|
*/
|
||||||
class MessageCollector 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 {CollectorFilter} filter The filter to be applied to this collector.
|
||||||
* @param {MessageCollectorOptions} options The options to be applied to this collector.
|
* @param {MessageCollectorOptions} options The options to be applied to this collector.
|
||||||
* @emits MessageCollector#message
|
* @emits MessageCollector#message
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const Collection = require('../util/Collection');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Collects reactions on messages.
|
* Collects reactions on messages.
|
||||||
* @implements {Collector}
|
* @extends {Collector}
|
||||||
*/
|
*/
|
||||||
class ReactionCollector extends Collector {
|
class ReactionCollector extends Collector {
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ const EventEmitter = require('events').EventEmitter;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for defining a new Collector.
|
* Abstract class for defining a new Collector.
|
||||||
* @interface
|
* @abstract
|
||||||
*/
|
*/
|
||||||
class Collector extends EventEmitter {
|
class Collector extends EventEmitter {
|
||||||
constructor(client, filter, options = {}) {
|
constructor(client, filter, options = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user