A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/discordjs/discord.js/commit/9bca4af5fdb78fae7b970498db7f93df31f55ef9 below:

Prevent `undefined` values (#10889) · discordjs/discord.js@9bca4af · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -27,7 +27,7 @@ class PartialGroupDMChannel extends BaseChannel {

27 27

* The hash of the channel icon

28 28

* @type {?string}

29 29

*/

30 -

this.icon = data.icon;

30 +

this.icon = data.icon ?? null;

31 31 32 32

/**

33 33

* Recipient data received in a {@link PartialGroupDMChannel}.

@@ -39,7 +39,7 @@ class PartialGroupDMChannel extends BaseChannel {

39 39

* The recipients of this Group DM Channel.

40 40

* @type {PartialRecipient[]}

41 41

*/

42 -

this.recipients = data.recipients;

42 +

this.recipients = data.recipients ?? [];

43 43 44 44

/**

45 45

* A manager of the messages belonging to this channel

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4