We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
undefined
1 parent 026440c commit 320e3a6Copy full SHA for 320e3a6
packages/discord.js/src/structures/PartialGroupDMChannel.js
@@ -27,7 +27,7 @@ class PartialGroupDMChannel extends BaseChannel {
27
* The hash of the channel icon
28
* @type {?string}
29
*/
30
- this.icon = data.icon;
+ this.icon = data.icon ?? null;
31
32
/**
33
* Recipient data received in a {@link PartialGroupDMChannel}.
@@ -39,7 +39,7 @@ class PartialGroupDMChannel extends BaseChannel {
39
* The recipients of this Group DM Channel.
40
* @type {PartialRecipient[]}
41
42
- this.recipients = data.recipients;
+ this.recipients = data.recipients ?? [];
43
44
45
* A manager of the messages belonging to this channel
0 commit comments