Class Request.Target

  • Enclosing class:
    Request

    public static final class Request.Target
    extends Object
    A recipient of an effect.

    This corresponds to a Twitch streamer connected to the Crowd Control server.

    • Method Detail

      • getId

        public int getId()
        The recipient's Twitch ID.
        Returns:
        Twitch ID
      • getName

        @NotNull
        public @NotNull String getName()
        The recipient's name on Twitch.
        Returns:
        Twitch username
      • getAvatar

        @NotNull
        public @NotNull String getAvatar()
        Gets the URL of the recipient's avatar on Twitch.
        Returns:
        Twitch avatar URL
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object