Skip to content

Commit

Permalink
fix error in typing events
Browse files Browse the repository at this point in the history
  • Loading branch information
timotejroiko committed Oct 30, 2020
1 parent 0b05ce1 commit 0f0d1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ module.exports = client => {
}
}
client.actions.TypingStart.handle = function(data) {
let guild = data.guild_id ? client.guilds.cache.get(data.guild_id) || client.guilds.add({id:data.guild_id,shardID:shard.is}, false) : void 0;
let guild = data.guild_id ? client.guilds.cache.get(data.guild_id) || client.guilds.add({id:data.guild_id,shardID:data.shardID}, false) : void 0;
let channel = client.channels.cache.get(data.channel_id) || client.channels.add({id:data.channel_id,type:guild ? 0 : 1}, guild, false);
let user = client.users.cache.get(data.user_id);
if(user) {
Expand Down

0 comments on commit 0f0d1db

Please sign in to comment.