Package net.dv8tion.jda.api.managers
Interface StageInstanceManager
- All Superinterfaces:
AuditableRestAction<Void>
,Manager<StageInstanceManager>
,RestAction<Void>
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 Summary
Modifier and TypeFieldDescriptionstatic final long
Used to reset the privacy level fieldstatic final long
Used to reset the topic fieldFields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionThe associatedStageInstance
reset
(long fields) Resets the fields specified by the provided bit-flag pattern.reset
(long... fields) Resets the fields specified by the provided bit-flag patterns.Deprecated.Obsolete.Sets the topic for this stage instance.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reason
Methods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeout
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Field Details
-
TOPIC
static final long TOPICUsed to reset the topic field- See Also:
-
PRIVACY_LEVEL
static final long PRIVACY_LEVELUsed to reset the privacy level field- See Also:
-
-
Method Details
-
reset
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 interfaceManager<StageInstanceManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- StageInstanceManager for chaining convenience
-
reset
Resets the fields specified by the provided bit-flag patterns.
Example:manager.reset(ChannelManager.TOPIC, ChannelManager.PRIVACY_LEVEL);
Flag Constants:
- Specified by:
reset
in interfaceManager<StageInstanceManager>
- Parameters:
fields
- Integer values containing the flags to reset.- Returns:
- StageInstanceManager for chaining convenience
-
getStageInstance
The associatedStageInstance
- Returns:
- The
StageInstance
-
setTopic
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
-
setPrivacyLevel
@Nonnull @CheckReturnValue @Deprecated @ForRemoval(deadline="5.1.0") StageInstanceManager setPrivacyLevel(@Nonnull StageInstance.PrivacyLevel level) Deprecated.Obsolete.Sets thePrivacyLevel
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:
IllegalArgumentException
- If the privacy level is null,UNKNOWN
.
-