Interface StageInstanceManager

    • Method Detail

      • reset

        @Nonnull
        StageInstanceManager reset​(long fields)
        Resets the fields specified by the provided bit-flag pattern. You can specify a combination by using a bitwise OR concat of the flag constants.
        Example: manager.reset(ChannelManager.TOPIC | ChannelManager.PRIVACY_LEVEL);

        Flag Constants:

        Specified by:
        reset in interface Manager<StageInstanceManager>
        Parameters:
        fields - Integer value containing the flags to reset.
        Returns:
        StageInstanceManager for chaining convenience
      • reset

        @Nonnull
        StageInstanceManager reset​(long... fields)
        Resets the fields specified by the provided bit-flag patterns.
        Example: manager.reset(ChannelManager.TOPIC, ChannelManager.PRIVACY_LEVEL);

        Flag Constants:

        Specified by:
        reset in interface Manager<StageInstanceManager>
        Parameters:
        fields - Integer values containing the flags to reset.
        Returns:
        StageInstanceManager for chaining convenience
      • setTopic

        @Nonnull
        @CheckReturnValue
        StageInstanceManager setTopic​(@Nullable
                                      java.lang.String topic)
        Sets the topic for this stage instance.
        This shows up in stage discovery and in the stage view.
        Parameters:
        topic - The topic or null to reset, must be 1-120 characters long
        Returns:
        StageInstanceManager for chaining convenience
        Throws:
        java.lang.IllegalArgumentException - If the topic is longer than 120 characters
      • setPrivacyLevel

        @Nonnull
        @CheckReturnValue
        StageInstanceManager setPrivacyLevel​(@Nonnull
                                             StageInstance.PrivacyLevel level)
        Sets the PrivacyLevel for this stage instance.
        This indicates whether guild lurkers are allowed to join the stage instance or only guild members.
        Parameters:
        level - The privacy level
        Returns:
        StageInstanceManager for chaining convenience
        Throws:
        java.lang.IllegalArgumentException - If the privacy level is null or UNKNOWN