Skip to content

Commit 83d2e2c

Browse files
committed
Collectibles on Member part
1 parent f2c5ce3 commit 83d2e2c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Discord/Parts/User/Member.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
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
*

0 commit comments

Comments
 (0)