Skip to content

Commit

Permalink
Update compretty.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GleammerRay committed Oct 23, 2024
1 parent ab550ad commit 66962e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/compretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,11 @@ const getNickname = (member) => {
const user = member.user;
var nickname = member.nick;
if (nickname == null) {
nickname = user.username;
if (user.discriminator != '0') nickname += '#' + user.discriminator;
nickname = user.global_name;
if (nickname == null) {
nickname = user.username;
if (user.discriminator != '0') nickname += '#' + user.discriminator;
}
}
return nickname.replace(new RegExp('`', 'g'), '')
}
Expand Down

0 comments on commit 66962e9

Please sign in to comment.