mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
Normalise some GuildMember values
This commit is contained in:
@@ -72,15 +72,15 @@ class GuildMember {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether this meember is speaking
|
* Whether this meember is speaking
|
||||||
* @type {?boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
this.speaking = this.speaking;
|
this.speaking = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The nickname of this Guild Member, if they have one
|
* The nickname of this Guild Member, if they have one
|
||||||
* @type {?string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.nickname = data.nick;
|
this.nickname = data.nick || null;
|
||||||
|
|
||||||
this.user = data.user;
|
this.user = data.user;
|
||||||
this._roles = data.roles;
|
this._roles = data.roles;
|
||||||
|
|||||||
Reference in New Issue
Block a user