Class Reaction

    • Constructor Detail

      • Reaction

        public Reaction​(GatewayDiscordClient gateway,
                        discord4j.discordjson.json.ReactionData data)
        Constructs a Reaction with an associated GatewayDiscordClient and Discord data.
        Parameters:
        gateway - The GatewayDiscordClient associated to this object, must be non-null.
        data - The raw data as represented by Discord, must be non-null.
    • Method Detail

      • getData

        public discord4j.discordjson.json.ReactionData getData()
        Gets the data of the reaction.
        Returns:
        The data of the reaction.
      • getCount

        public int getCount()
        Gets the number of people who reacted with this reaction's emoji.
        Returns:
        The number of people who reacted with this reaction's emoji.
      • selfReacted

        public boolean selfReacted()
        Gets whether the current bot user reacted using this reaction's emoji.
        Returns:
        Whether the current bot user reacted using this reaction's emoji.
      • getEmoji

        public ReactionEmoji getEmoji()
        Gets this reaction's emoji.
        Returns:
        This reaction's emoji.