Skip to content

Commit

Permalink
fix(detector): use displayName instead of nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Feb 1, 2022
1 parent 1895a24 commit 7dfebdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/guildMemberUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return;
}

const newNickname = newMember.nickname.replace(detector, 'h');
const newNickname = newMember.displayName.replace(detector, 'h');
newMember.setNickname(newNickname);

if (newMember.user.bot) {
Expand Down

0 comments on commit 7dfebdd

Please sign in to comment.