change maps to Collections

This commit is contained in:
Amish Shah
2016-08-23 00:17:41 +01:00
parent 725e0a8cfe
commit 1deefbd8cd
9 changed files with 153 additions and 35 deletions

View File

@@ -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