File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6666 * @property-read string|null $avatar_decoration The member's guild avatar decoration URL.
6767 * @property-read string|null $avatar_decoration_hash The member's guild avatar decoration hash.
6868 * @property ?AvatarDecorationData|null $avatar_decoration_data Data for the member's guild avatar decoration.
69+ * @property ?Collectibles|null $collectibles Data for the member's collectibles
6970 *
7071 * @property string|null $guild_id The unique identifier of the guild that the member belongs to.
7172 * @property-read Guild|null $guild The guild that the member belongs to.
@@ -119,6 +120,7 @@ class Member extends Part implements Stringable
119120 'permissions ' ,
120121 'communication_disabled_until ' ,
121122 'avatar_decoration_data ' ,
123+ 'collectibles ' ,
122124
123125 // partial
124126 'guild_id ' ,
@@ -974,6 +976,16 @@ protected function getAvatarDecorationDataAttribute(): ?AvatarDecorationData
974976 return $ this ->attributePartHelper ('avatar_decoration_data ' , AvatarDecorationData::class);
975977 }
976978
979+ /**
980+ * Returns the collectibles for the member.
981+ *
982+ * @return Collectibles|null The collectibles data.
983+ */
984+ protected function getCollectiblesAttribute (): ?Collectibles
985+ {
986+ return $ this ->attributePartHelper ('collectibles ' , Collectibles::class);
987+ }
988+
977989 /**
978990 * Returns the voicechannel of the member.
979991 *
You can’t perform that action at this time.
0 commit comments