Enum StageInstance.PrivacyLevel

    • Enum Constant Detail

      • UNKNOWN

        public static final StageInstance.PrivacyLevel UNKNOWN
        Placeholder for future privacy levels, indicates that this version of JDA does not support this privacy level yet
      • PUBLIC

        public static final StageInstance.PrivacyLevel PUBLIC
        This stage instance can be accessed by lurkers, meaning users that are not active members of the guild
    • Method Detail

      • values

        public static StageInstance.PrivacyLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StageInstance.PrivacyLevel c : StageInstance.PrivacyLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StageInstance.PrivacyLevel valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getKey

        public int getKey()
        The raw API key for this privacy level
        Returns:
        The raw API value or -1 if this is UNKNOWN