@@ -194,20 +194,24 @@ class Member(PartialMember):
194
194
The profile comment of the member, if any.
195
195
has_joined: :class:`bool`
196
196
Whether the member has joined the community.
197
- has_membership: :class:`bool`
198
- Whether the member has a paid membership to the community.
197
+ has_membership: :class:`bool` | :class:`None`
198
+ Whether the member has a paid membership to the community. Will
199
+ return :class:`None` if it is the :class:`Member` object of the group.
199
200
is_official: :class:`bool`
200
201
Whether the member is an official Weverse account.
201
- is_hidden: :class:`bool`
202
- Whether the member is hidden.
203
- is_blinded: :class:`bool`
204
- Whether the member is blinded.
202
+ is_hidden: :class:`bool` | :class:`None`
203
+ Whether the member is hidden. Will return :class:`None` if it is the
204
+ :class:`Member` object of the group.
205
+ is_blinded: :class:`bool` | :class:`None`
206
+ Whether the member is blinded. Will return :class:`None` if it is the
207
+ :class:`Member` object of the group.
205
208
is_followed: :class:`bool`
206
209
Whether the signed-in account is following the member.
207
210
is_my_profile: :class:`bool`
208
211
Whether the member is yourself.
209
- first_joined_at: :class:`int`
210
- The time the member first joined the community at, in epoch.
212
+ first_joined_at: :class:`int` | :class:`None`
213
+ The time the member first joined the community at, in epoch. Will return
214
+ :class:`None` if it is the :class:`Member` object of the group.
211
215
follow_count: :class:`int` | :class:`None`
212
216
The number of followers the member has, if available.
213
217
artist_profile: :class:`ArtistProfile` | :class:`None`
@@ -236,13 +240,13 @@ def __init__(self, data: dict):
236
240
self .profile_cover_image_url : str | None = data .get ("profileCoverImageUrl" )
237
241
self .profile_comment : str | None = data .get ("profileComment" )
238
242
self .has_joined : bool = data ["joined" ]
239
- self .has_membership : bool = data [ "hasMembership" ]
243
+ self .has_membership : bool | None = data . get ( "hasMembership" )
240
244
self .is_official : bool = data ["hasOfficialMark" ]
241
- self .is_hidden : bool = data [ "hidden" ]
242
- self .is_blinded : bool = data [ "blinded" ]
245
+ self .is_hidden : bool | None = data . get ( "hidden" )
246
+ self .is_blinded : bool | None = data . get ( "blinded" )
243
247
self .is_followed : bool = data ["followed" ]
244
248
self .is_my_profile : bool = data ["myProfile" ]
245
- self .first_joined_at : int = data [ "firstJoinAt" ]
249
+ self .first_joined_at : int | None = data . get ( "firstJoinAt" )
246
250
self .follow_count : int | None = (
247
251
data ["followCount" ]["followerCount" ] if "followCount" in data else None
248
252
)
0 commit comments