Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Fix: Bot repeatedly tries to reset nicknames (Fixes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jftanner committed Oct 24, 2020
1 parent 23e58c4 commit 51ccbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Player {

// Build the patch object.
const patch = {};
if (member.manageable && member.nickname !== nick) patch.nick = nick;
if (member.manageable && member.displayName !== nick) patch.nick = nick;
if (updateVoice && voice.serverMute !== mute) patch.mute = mute;
if (updateVoice && voice.serverDeaf !== deaf) patch.deaf = deaf;

Expand Down

0 comments on commit 51ccbc7

Please sign in to comment.