mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Move _typing to constructor
This commit is contained in:
parent
fd564176ff
commit
78673139ca
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue