Skip to content

Commit b90d192

Browse files
committed
Fix attempt to read property "id" on array
1 parent 010a138 commit b90d192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord/Parts/User/Member.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ protected function getClientStatusAttribute(): ClientStatus
667667
*/
668668
protected function getIdAttribute(): string
669669
{
670-
return $this->attributes['id'] ?? $this->attributes['user']->id;
670+
return $this->attributes['id'] ?? $this->user->id;
671671
}
672672

673673
/**

0 commit comments

Comments
 (0)