Class GenericUserPresenceEvent<T>

    • Constructor Detail

      • GenericUserPresenceEvent

        public GenericUserPresenceEvent​(JDA api,
                                        long responseNumber,
                                        User user,
                                        Guild guild,
                                        T previous,
                                        T next,
                                        java.lang.String identifier)
    • Method Detail

      • getGuild

        public Guild getGuild()
        Possibly-null guild in which the presence has changed.
        Returns:
        The guild, or null if this is related to a Friend
      • getMember

        public Member getMember()
        Possibly-null member who changed their presence.
        Returns:
        The member, or null if this is related to a Friend
      • getFriend

        public Friend getFriend()
        Possibly-null friend who changed their presence.
        Returns:
        The friend, or null if this is related to a Member
      • isRelationshipUpdate

        public boolean isRelationshipUpdate()
        Whether this is a change for a friend presence.
        Returns:
        True, if this was the presence update for a Friend