mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
refactor: ES2021 features (#6540)
Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
@@ -93,8 +93,8 @@ class User extends Base {
|
||||
* @type {?number}
|
||||
*/
|
||||
this.accentColor = data.accent_color;
|
||||
} else if (typeof this.accentColor === 'undefined') {
|
||||
this.accentColor = null;
|
||||
} else {
|
||||
this.accentColor ??= null;
|
||||
}
|
||||
|
||||
if ('system' in data) {
|
||||
|
||||
Reference in New Issue
Block a user