fix(PartialGroupDMChannel): Prevent undefined values

backport #10889 djs
This commit is contained in:
Elysia
2025-07-08 20:47:28 +07:00
parent 00fec85df0
commit 9d2ff0f428
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
} }
} }