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.

    • Method Detail

      • getGuild

        @Nonnull
        Guild getGuild()
        The Guild this stage instance is in
        Returns:
        The Guild
      • getTopic

        @Nonnull
        java.lang.String getTopic()
        The topic of this stage instance
        Returns:
        The topic
      • isDiscoverable

        boolean 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 the audience.

        Only stage moderators can promote or invite speakers. A stage moderator can move between speaker and audience at any time.

        Returns:
        List of Members which 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 a speaker.

        Only stage moderators can promote or invite speakers. A stage moderator can move between speaker and audience at any time.

        Returns:
        List of Members which cannot speak in this stage instance
      • requestToSpeak

        @Nonnull
        @CheckReturnValue
        RestAction<java.lang.Void> requestToSpeak()
        Sends a request-to-speak indicator to the stage instance moderators.

        If the self member has Permission.VOICE_MUTE_OTHERS this 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 the Request-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()