mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Store Channel Messages in Maps
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
* @interface
|
||||
*/
|
||||
class TextBasedChannel {
|
||||
|
||||
constructor() {
|
||||
/**
|
||||
* A Map containing the messages sent to this channel.
|
||||
* @type {Map<String, Message>}
|
||||
*/
|
||||
this.messages = new Map();
|
||||
}
|
||||
/**
|
||||
* Send a message to this channel
|
||||
* @param {String} content the content to send
|
||||
|
||||
Reference in New Issue
Block a user