fix(PartialGroupDMChannel): Prevent undefined values
backport #10889 djs
This commit is contained in:
@@ -28,7 +28,7 @@ class BaseGuild extends Base {
|
|||||||
* The icon hash of this guild
|
* The icon hash of this guild
|
||||||
* @type {?string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.icon = data.icon;
|
this.icon = data.icon ?? null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of features available to this guild
|
* An array of features available to this guild
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class GroupDMChannel extends Channel {
|
|||||||
* The hash of the channel icon
|
* The hash of the channel icon
|
||||||
* @type {?string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.icon = data.icon;
|
this.icon = data.icon ?? null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user