mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
change maps to Collections
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const Collection = require('../../util/Collection');
|
||||
|
||||
/**
|
||||
* Interface for classes that have text-channel-like features
|
||||
* @interface
|
||||
@@ -6,10 +8,10 @@ class TextBasedChannel {
|
||||
|
||||
constructor() {
|
||||
/**
|
||||
* A Map containing the messages sent to this channel.
|
||||
* @type {Map<String, Message>}
|
||||
* A Collection containing the messages sent to this channel.
|
||||
* @type {Collection<String, Message>}
|
||||
*/
|
||||
this.messages = new Map();
|
||||
this.messages = new Collection();
|
||||
}
|
||||
/**
|
||||
* Send a message to this channel
|
||||
|
||||
Reference in New Issue
Block a user