Interface SingleReactionEvent

    • Method Detail

      • getEmoji

        Emoji getEmoji()
        Gets the emoji of the event.
        Returns:
        The emoji.
      • getReaction

        java.util.Optional<Reaction> getReaction()
        Gets the reaction if the message is cached and the reaction exists.
        Returns:
        The reaction.
      • requestReaction

        java.util.concurrent.CompletableFuture<java.util.Optional<Reaction>> requestReaction()
        Gets the reaction if it exists. If the message is not cached, it will be requested from Discord first.
        Returns:
        The reaction.
        See Also:
        RequestableMessageEvent.requestMessage()
      • getCount

        java.util.Optional<java.lang.Integer> getCount()
        Gets the amount of users who used the reaction if the message is cached.
        Returns:
        The amount of users who used the reaction.
      • requestCount

        java.util.concurrent.CompletableFuture<java.lang.Integer> requestCount()
        Gets the amount of users who used the reaction. If the message is not cached, it will be requested from Discord first.
        Returns:
        The amount of users who used the reaction.
        See Also:
        RequestableMessageEvent.requestMessage()
      • getUsers

        java.util.concurrent.CompletableFuture<java.util.Set<User>> getUsers()
        Gets all users who used the reaction.
        Returns:
        All users who used the reaction.