Interface StageInstanceManager

All Superinterfaces:
AuditableRestAction<Void>, Manager<StageInstanceManager>, RestAction<Void>

public interface StageInstanceManager extends Manager<StageInstanceManager>
Manager providing functionality to update one or more fields for a StageInstance.

Example

manager.setTopic("LMAO JOIN FOR FREE NITRO")
       .setPrivacyLevel(PrivacyLevel.PUBLIC)
       .queue();
manager.reset(ChannelManager.TOPIC | ChannelManager.PRIVACY_LEVEL)
       .setTopic("Talent Show | WINNER GETS FREE NITRO")
       .setPrivacyLevel(PrivacyLevel.GUILD_ONLY)
       .queue();
See Also:
  • Field Details

  • Method Details

    • reset

      @Nonnull @CheckReturnValue 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 @CheckReturnValue StageInstanceManager reset(@Nonnull 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
    • getStageInstance

      @Nonnull StageInstance getStageInstance()
      The associated StageInstance
      Returns:
      The StageInstance
    • setTopic

      @Nonnull @CheckReturnValue StageInstanceManager setTopic(@Nullable 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:
      IllegalArgumentException - If the topic is longer than 120 characters