Package 

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 MemberInfo toMemberInfo(Member $self) Narrows a full Member down to the slim MemberInfo carried by Message.member.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.member carries 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.