Presence on User #5248
-
Is there any good reason why we apply Presence back to the User instance? Presences are intrinsically guild bound data, yet we apply it back to the underlying User. In day to day support, this has often caused issues to arise where the presence is not available on the User but works flawlessly if accessed via the GuildMember instance ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems it is just a glorified helper getter to get the presence from the first guild that has the presence. discord.js/src/structures/User.js Lines 141 to 153 in f95f5dc Seems like a sensible bit of cruft to remove given it causes confusion and is nothing more than a helper, no unique data stored. |
Beta Was this translation helpful? Give feedback.
Seems it is just a glorified helper getter to get the presence from the first guild that has the presence.
discord.js/src/structures/User.js
Lines 141 to 153 in f95f5dc
Seems like a sensible bit of cruft to remove given i…