Class StageInstanceImpl
java.lang.Object
net.dv8tion.jda.internal.entities.StageInstanceImpl
- All Implemented Interfaces:
ISnowflake
,StageInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.StageInstance
StageInstance.PrivacyLevel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Deletes this stage instanceTheStageChannel
for this stage instancegetGuild()
TheGuild
this stage instance is inlong
The Snowflake id of this entity.TheStageInstanceManager
used to update this stage instance.TheStageInstance.PrivacyLevel
of this stage instancegetTopic()
The topic of this stage instancesetPrivacyLevel
(StageInstance.PrivacyLevel privacyLevel) toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.StageInstance
getAudience, getSpeakers
-
Constructor Details
-
StageInstanceImpl
-
-
Method Details
-
getIdLong
public long getIdLong()Description copied from interface:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in interfaceISnowflake
- Returns:
- Long containing the Id.
-
getGuild
Description copied from interface:StageInstance
TheGuild
this stage instance is in- Specified by:
getGuild
in interfaceStageInstance
- Returns:
- The
Guild
-
getChannel
Description copied from interface:StageInstance
TheStageChannel
for this stage instance- Specified by:
getChannel
in interfaceStageInstance
- Returns:
- The
StageChannel
-
getTopic
Description copied from interface:StageInstance
The topic of this stage instance- Specified by:
getTopic
in interfaceStageInstance
- Returns:
- The topic
-
getPrivacyLevel
Description copied from interface:StageInstance
TheStageInstance.PrivacyLevel
of this stage instance- Specified by:
getPrivacyLevel
in interfaceStageInstance
- Returns:
- The
StageInstance.PrivacyLevel
-
delete
Description copied from interface:StageInstance
Deletes this stage instancePossible
ErrorResponses
include:UNKNOWN_STAGE_INSTANCE
If this stage instance is already deletedUNKNOWN_CHANNEL
If the channel was deleted
- Specified by:
delete
in interfaceStageInstance
- Returns:
RestAction
-
getManager
Description copied from interface:StageInstance
TheStageInstanceManager
used 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
.- Specified by:
getManager
in interfaceStageInstance
- Returns:
- The
StageInstanceManager
-
setTopic
-
setPrivacyLevel
-
toString
-