mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Clean up a bunch of stuff
- Channel typing data is now a Map - Client properties on structures are now non-enumerable and non-configurable
This commit is contained in:
@@ -8,8 +8,8 @@ class Channel {
|
||||
* @type {Client}
|
||||
*/
|
||||
this.client = client;
|
||||
this.typingMap = {};
|
||||
this.typingTimeouts = [];
|
||||
Object.defineProperty(this, 'client', { enumerable: false, configurable: false });
|
||||
|
||||
/**
|
||||
* The type of the channel, either:
|
||||
* * `dm` - a DM channel
|
||||
@@ -19,6 +19,8 @@ class Channel {
|
||||
* @type {string}
|
||||
*/
|
||||
this.type = null;
|
||||
|
||||
this._typing = new Map();
|
||||
if (data) this.setup(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user