mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Fix two more lines to use new typing map
And a tiny text fix
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -41,8 +41,8 @@ class TypingData {
|
|||||||
|
|
||||||
function tooLate(channel, user) {
|
function tooLate(channel, user) {
|
||||||
return channel.client.setTimeout(() => {
|
return channel.client.setTimeout(() => {
|
||||||
channel.client.emit(Constants.Events.TYPING_STOP, channel, user, channel._typing[user.id]);
|
channel.client.emit(Constants.Events.TYPING_STOP, channel, user, channel._typing.get(user.id));
|
||||||
delete channel._typing[user.id];
|
channel._typing.delete(user.id);
|
||||||
}, 6000);
|
}, 6000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class TextChannel extends GuildChannel {
|
|||||||
super.setup(data);
|
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}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.topic = data.topic;
|
this.topic = data.topic;
|
||||||
|
|||||||
Reference in New Issue
Block a user