Skip to content

Commit

Permalink
Fixes bug #244
Browse files Browse the repository at this point in the history
  • Loading branch information
saiteja-madha committed Dec 10, 2022
1 parent be9d3fd commit 88705d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {
if (!newState.member) return;

const member = await newState.member.fetch().catch(() => {});
if (member.user.bot) return;
if (!member || member.user.bot) return;

// Member joined a voice channel
if (!oldChannel && newChannel) {
Expand Down

0 comments on commit 88705d4

Please sign in to comment.