3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Hotfix for crash

This commit is contained in:
Dragory 2019-05-03 23:34:44 +03:00
parent f33b3c37ff
commit 55af41cfc4

View file

@ -12,6 +12,7 @@ export class UsernameSaver extends GlobalPlugin {
}
protected async updateUsername(user: User) {
if (!user) return;
const newUsername = `${user.username}#${user.discriminator}`;
const latestEntry = await this.usernameHistory.getLastEntry(user.id);
if (newUsername !== latestEntry.username) {