Fix two more lines to use new typing map

And a tiny text fix
This commit is contained in:
Schuyler Cebulskie
2016-09-07 00:58:16 -04:00
parent b9caa2ee5d
commit f185d892c7
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -41,8 +41,8 @@ class TypingData {
function tooLate(channel, user) {
return channel.client.setTimeout(() => {
channel.client.emit(Constants.Events.TYPING_STOP, channel, user, channel._typing[user.id]);
delete channel._typing[user.id];
channel.client.emit(Constants.Events.TYPING_STOP, channel, user, channel._typing.get(user.id));
channel._typing.delete(user.id);
}, 6000);
}

View File

@@ -17,7 +17,7 @@ class TextChannel extends GuildChannel {
super.setup(data);
/**
* The topic of the Guild Channel, if there is one.
* The topic of the Text Channel, if there is one.
* @type {?string}
*/
this.topic = data.topic;