-
public final class MemberKt
-
-
Method Summary
Modifier and Type Method Description final static Collection<Member>updateUsers(Collection<Member> $self, Map<String, User> userMap)Updates collection of members with more recent data of users. final static MemberInfotoMemberInfo(Member $self)Narrows a full Member down to the slim MemberInfo carried by Message.member. -
-
Method Detail
-
updateUsers
final static Collection<Member> updateUsers(Collection<Member> $self, Map<String, User> userMap)
Updates collection of members with more recent data of users.
-
toMemberInfo
final static MemberInfo toMemberInfo(Member $self)
Narrows a full Member down to the slim MemberInfo carried by Message.member.
Member.extraData carries stored member fields alongside the member's own custom data. The projection the backend puts on
message.membercarries none of the former, so they are dropped here to keep MemberInfo.extraData identical no matter whether it came from a message payload or from a member event.
-
-
-
-