Fix bot arrange on long name

This commit is contained in:
Lamp 2018-09-02 15:57:12 -07:00 committed by GitHub
parent 2a96201339
commit ffb5166e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,5 +31,5 @@
// arrange bots at bottom of list // arrange bots at bottom of list
dClient.on('guildMemberAdd', member => { dClient.on('guildMemberAdd', member => {
if (member.user.bot) if (member.user.bot)
member.setNickname(`\udb40\udc00${member.displayName}`); member.setNickname(`\udb40\udc00${member.displayName}`.substr(0,32));
}); });