Hotfix for crash
This commit is contained in:
parent
e231faf51f
commit
a4919523c1
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue