diff --git a/src/main/java/net/dv8tion/jda/api/events/message/guild/react/GenericGuildMessageReactionEvent.java b/src/main/java/net/dv8tion/jda/api/events/message/guild/react/GenericGuildMessageReactionEvent.java index 81cf0229aa..a02f406022 100644 --- a/src/main/java/net/dv8tion/jda/api/events/message/guild/react/GenericGuildMessageReactionEvent.java +++ b/src/main/java/net/dv8tion/jda/api/events/message/guild/react/GenericGuildMessageReactionEvent.java @@ -46,7 +46,7 @@ public GenericGuildMessageReactionEvent(@Nonnull JDA api, long responseNumber, @ } /** - * The id for the user who added/removed their reaction. + * The id for the user who owns the reaction. * * @return The user id */ @@ -57,7 +57,7 @@ public String getUserId() } /** - * The id for the user who added/removed their reaction. + * The id for the user who owns the reaction. * * @return The user id */ @@ -116,7 +116,7 @@ public MessageReaction.ReactionEmote getReactionEmote() } /** - * Retrieves the {@link User} who added or removed the reaction. + * Retrieves the {@link User} who owns the reaction. *
If a user is known, this will return {@link #getUser()}. * * @return {@link RestAction} - Type: {@link User} @@ -131,7 +131,7 @@ public RestAction retrieveUser() } /** - * Retrieves the {@link Member} who added or removed the reaction. + * Retrieves the {@link Member} who owns the reaction. *
If a member is known, this will return {@link #getMember()}. * *

Note that banning a member will also fire {@link GuildMessageReactionRemoveEvent} and no member will be available @@ -154,7 +154,7 @@ public RestAction retrieveMember() *
Simple shortcut for {@code getChannel().retrieveMessageById(getMessageId())}. * *

The {@link Message#getMember() Message.getMember()} method will always return null for the resulting message. - * You can, instead, retrieve the member via {@link #getMember()} or {@link #retrieveMember()}. + * To retrieve the member you can use {@code getGuild().retrieveMember(message.getAuthor())}. * * @return {@link RestAction} - Type: {@link Message} */ diff --git a/src/main/java/net/dv8tion/jda/api/events/message/react/GenericMessageReactionEvent.java b/src/main/java/net/dv8tion/jda/api/events/message/react/GenericMessageReactionEvent.java index 775e46c2ce..f47a0572ef 100644 --- a/src/main/java/net/dv8tion/jda/api/events/message/react/GenericMessageReactionEvent.java +++ b/src/main/java/net/dv8tion/jda/api/events/message/react/GenericMessageReactionEvent.java @@ -50,7 +50,7 @@ public GenericMessageReactionEvent(@Nonnull JDA api, long responseNumber, @Nulla } /** - * The id for the user who added/removed their reaction. + * The id for the user who owns the reaction. * * @return The user id */ @@ -61,7 +61,7 @@ public String getUserId() } /** - * The id for the user who added/removed their reaction. + * The id for the user who owns reaction. * * @return The user id */ @@ -126,7 +126,7 @@ public MessageReaction.ReactionEmote getReactionEmote() } /** - * Retrieves the {@link User} who added or removed the reaction. + * Retrieves the {@link User} who owns the reaction. *
If a user is known, this will return {@link #getUser()}. * * @return {@link RestAction} - Type: {@link User} @@ -142,13 +142,16 @@ public RestAction retrieveUser() } /** - * Retrieves the {@link Member} who added or removed the reaction. + * Retrieves the {@link Member} who owns the reaction. *
If a member is known, this will return {@link #getMember()}. * *

Note that banning a member will also fire {@link MessageReactionRemoveEvent} and no member will be available * in those cases. An {@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MEMBER UNKNOWN_MEMBER} error response * should be the failure result. * + * @throws IllegalStateException + * If this event is not from a guild + * * @return {@link RestAction} - Type: {@link Member} */ @Nonnull @@ -165,7 +168,7 @@ public RestAction retrieveMember() *
Simple shortcut for {@code getChannel().retrieveMessageById(getMessageId())}. * *

The {@link Message#getMember() Message.getMember()} method will always return null for the resulting message. - * You can, instead, retrieve the member via {@link #getMember()} or {@link #retrieveMember()}. + * To retrieve the member you can use {@code getGuild().retrieveMember(message.getAuthor())}. * * @return {@link RestAction} - Type: {@link Message} */