mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
Move _typing to text-based channels
This commit is contained in:
parent
f185d892c7
commit
73cb34ed37
4 changed files with 4 additions and 8 deletions
|
|
@ -20,7 +20,6 @@ class Channel {
|
||||||
*/
|
*/
|
||||||
this.type = null;
|
this.type = null;
|
||||||
|
|
||||||
this._typing = new Map();
|
|
||||||
if (data) this.setup(data);
|
if (data) this.setup(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ class DMChannel extends Channel {
|
||||||
|
|
||||||
this.type = 'dm';
|
this.type = 'dm';
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -72,9 +72,9 @@ class GroupDMChannel extends Channel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.id = data.id;
|
|
||||||
this.type = 'group';
|
this.type = 'group';
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
equals(other) {
|
equals(other) {
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,9 @@ class TextChannel extends GuildChannel {
|
||||||
*/
|
*/
|
||||||
this.topic = data.topic;
|
this.topic = data.topic;
|
||||||
|
|
||||||
/**
|
|
||||||
* The ID of the last message in the channel, if one was sent.
|
|
||||||
* @type {?string}
|
|
||||||
*/
|
|
||||||
this.lastMessageID = data.last_message_id;
|
|
||||||
|
|
||||||
this.type = 'text';
|
this.type = 'text';
|
||||||
|
this.lastMessageID = data.last_message_id;
|
||||||
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMessage() {
|
sendMessage() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue