mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Have block in place for rare weird typing in voice channel bug
This commit is contained in:
@@ -10,6 +10,9 @@ class TypingStartHandler extends AbstractHandler {
|
||||
const timestamp = new Date(data.timestamp * 1000);
|
||||
|
||||
if (channel && user) {
|
||||
if (channel.type === 'voice') {
|
||||
return client.emit('warn', `Discord sent a typing packet to voice channel ${channel.id}`);
|
||||
}
|
||||
if (channel._typing.has(user.id)) {
|
||||
const typing = channel._typing.get(user.id);
|
||||
typing.lastTimestamp = timestamp;
|
||||
|
||||
Reference in New Issue
Block a user