fix: discord global_name are optional 😶
This commit is contained in:
parent
9e38c87a5a
commit
9bb6362a68
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue