Class Region

    • Constructor Detail

      • Region

        public Region​(GatewayDiscordClient gateway,
                      discord4j.discordjson.json.RegionData data)
        Constructs a Region 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.RegionData getData()
        Gets the data of the region.
        Returns:
        The data of the region.
      • getId

        public String getId()
        Gets the unique ID for the region.
        Returns:
        The unique ID for the region.
      • getName

        public String getName()
        Gets the name of the region.
        Returns:
        The name of the region.
      • isVip

        public boolean isVip()
        Gets if this is a VIP region.
        Returns:
        true if this is a VIP region, false otherwise.
      • isOptimal

        public boolean isOptimal()
        Gets if the region is closest to the current user's serviceMediator.
        Returns:
        true if the region is closest to the current user's serviceMediator, false otherwise.
      • isDeprecated

        public boolean isDeprecated()
        Gets if this is a deprecated voice region.
        Returns:
        true if this is a deprecated voice region, false otherwise.
      • isCustom

        public boolean isCustom()
        Gets if this is a custom voice region.
        Returns:
        true if this is a custom voice region, false otherwise.