fix: discord global_name are optional 😶
All checks were successful
Deploy Website / deploy (push) Successful in 44s
Lint Codebase / lint (push) Successful in 56s

This commit is contained in:
TheClashFruit 2024-08-30 15:04:27 +02:00
parent 9e38c87a5a
commit 9bb6362a68
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204

View file

@ -73,7 +73,7 @@ class Database {
const [ res ] = await this.mysqlPool!.execute('INSERT INTO users (did, username, global_name, email, avatar, banner, accent_color) VALUES (?, ?, ?, ?, ?, ?, ?)', [
user.id,
user.username,
user.global_name,
(user.global_name || user.username),
user.email,
user.avatar,
user.banner,