mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Move _typing to constructor
This commit is contained in:
@@ -12,6 +12,7 @@ class DMChannel extends Channel {
|
||||
constructor(client, data) {
|
||||
super(client, data);
|
||||
this.messages = new Collection();
|
||||
this._typing = new Map();
|
||||
}
|
||||
|
||||
setup(data) {
|
||||
@@ -25,7 +26,6 @@ class DMChannel extends Channel {
|
||||
|
||||
this.type = 'dm';
|
||||
this.lastMessageID = data.last_message_id;
|
||||
this._typing = new Map();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,6 +11,7 @@ class TextChannel extends GuildChannel {
|
||||
constructor(guild, data) {
|
||||
super(guild, data);
|
||||
this.messages = new Collection();
|
||||
this._typing = new Map();
|
||||
}
|
||||
|
||||
setup(data) {
|
||||
@@ -24,7 +25,6 @@ class TextChannel extends GuildChannel {
|
||||
|
||||
this.type = 'text';
|
||||
this.lastMessageID = data.last_message_id;
|
||||
this._typing = new Map();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user