Interface StageInstance
- 
- All Superinterfaces:
- ISnowflake
 
 public interface StageInstance extends ISnowflake A Stage Instance holds information about a live stage.This instance indicates an active stage channel with speakers, usually to host events such as presentations or meetings. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classStageInstance.PrivacyLevelThe privacy level for a stage instance.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RestAction<java.lang.Void>cancelRequestToSpeak()Cancels theRequest-to-Speak.RestAction<java.lang.Void>delete()Deletes this stage instancedefault java.util.List<Member>getAudience()All current audience members of this stage instance.StageChannelgetChannel()TheStageChannelfor this stage instanceGuildgetGuild()TheGuildthis stage instance is inStageInstanceManagergetManager()TheStageInstanceManagerused to update this stage instance.StageInstance.PrivacyLevelgetPrivacyLevel()TheStageInstance.PrivacyLevelof this stage instancedefault java.util.List<Member>getSpeakers()All current speakers of this stage instance.java.lang.StringgetTopic()The topic of this stage instancebooleanisDiscoverable()Whether this stage instance can be found in stage discovery.RestAction<java.lang.Void>requestToSpeak()Sends arequest-to-speakindicator to the stage instance moderators.- 
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflakegetId, getIdLong, getTimeCreated
 
- 
 
- 
- 
- 
Method Detail- 
getChannel@Nonnull StageChannel getChannel() TheStageChannelfor this stage instance- Returns:
- The StageChannel
 
 - 
getTopic@Nonnull java.lang.String getTopic() The topic of this stage instance- Returns:
- The topic
 
 - 
getPrivacyLevel@Nonnull StageInstance.PrivacyLevel getPrivacyLevel() TheStageInstance.PrivacyLevelof this stage instance- Returns:
- The StageInstance.PrivacyLevel
 
 - 
isDiscoverableboolean isDiscoverable() Whether this stage instance can be found in stage discovery.- Returns:
- True if this is a public stage that can be found in stage discovery
 
 - 
getSpeakers@Nonnull default java.util.List<Member> getSpeakers() All current speakers of this stage instance.A member is considered a speaker when they are currently connected to the stage channel and their voice state is not suppressed. When a member is not a speaker, they are part of theaudience.Only stage moderatorscan promote or invite speakers. A stage moderator can move between speaker and audience at any time.- Returns:
- Listof- Memberswhich can speak in this stage instance
 
 - 
getAudience@Nonnull default java.util.List<Member> getAudience() All current audience members of this stage instance.A member is considered part of the audience when they are currently connected to the stage channel and their voice state is suppressed. When a member is not part of the audience, they are considered aspeaker.Only stage moderatorscan promote or invite speakers. A stage moderator can move between speaker and audience at any time.- Returns:
- Listof- Memberswhich cannot speak in this stage instance
 
 - 
delete@Nonnull @CheckReturnValue RestAction<java.lang.Void> delete() Deletes this stage instancePossible ErrorResponsesinclude:- UNKNOWN_STAGE_INSTANCE
 If this stage instance is already deleted
- UNKNOWN_CHANNEL
 If the channel was deleted
 - Returns:
- RestAction
- Throws:
- InsufficientPermissionException- If the self member is not a- stage moderator
 
 - 
requestToSpeak@Nonnull @CheckReturnValue RestAction<java.lang.Void> requestToSpeak() Sends arequest-to-speakindicator to the stage instance moderators.If the self member has Permission.VOICE_MUTE_OTHERSthis will immediately promote them to speaker.- Returns:
- RestAction
- Throws:
- java.lang.IllegalStateException- If the self member is not currently connected to the channel of this stage instance
- See Also:
- cancelRequestToSpeak()
 
 - 
cancelRequestToSpeak@Nonnull @CheckReturnValue RestAction<java.lang.Void> cancelRequestToSpeak() Cancels theRequest-to-Speak.
 This can also be used to move back to the audience if you are currently a speaker.If there is no request to speak or the member is not currently connected to an active StageInstance, this does nothing.- Returns:
- RestAction
- Throws:
- java.lang.IllegalStateException- If the self member is not currently connected to the channel of this stage instance
- See Also:
- requestToSpeak()
 
 - 
getManager@Nonnull @CheckReturnValue StageInstanceManager getManager() TheStageInstanceManagerused to update this stage instance.This can be used to update multiple fields such as topic and privacy level in one request If this stage instance is already deleted, this will fail with ErrorResponse.UNKNOWN_STAGE_INSTANCE.- Returns:
- The StageInstanceManager
- Throws:
- InsufficientPermissionException- If the self member is not a- stage moderator
 
 
- 
 
-