Class GenericPrivateMessageReactionEvent

    • Constructor Detail

      • GenericPrivateMessageReactionEvent

        public GenericPrivateMessageReactionEvent​(@Nonnull
                                                  JDA api,
                                                  long responseNumber,
                                                  @Nonnull
                                                  MessageReaction reaction,
                                                  long userId)
    • Method Detail

      • getUserId

        @Nonnull
        public java.lang.String getUserId()
        The id for the user who added/removed their reaction.
        Returns:
        The user id
      • getUserIdLong

        public long getUserIdLong()
        The id for the user who added/removed their reaction.
        Returns:
        The user id
      • getUser

        @Nullable
        public User getUser()
        The reacting User
        This might be missing if the user was not cached.
        Returns:
        The reacting user
        See Also:
        retrieveUser()
      • retrieveUser

        @Nonnull
        @CheckReturnValue
        public RestAction<User> retrieveUser()
        Retrieves the User who owns the reaction.
        If a user is known, this will return getUser().
        Returns:
        RestAction - Type: User
        Since:
        4.3.1
      • retrieveMessage

        @Nonnull
        @CheckReturnValue
        public RestAction<Message> retrieveMessage()
        Retrieves the message for this reaction event.
        Simple shortcut for getChannel().retrieveMessageById(getMessageId()).

        The Message.getMember() method will always return null for the resulting message.

        Returns:
        RestAction - Type: Message
        Since:
        4.3.1