Class StageInstanceUpdatePrivacyLevelEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.stage.GenericStageInstanceEvent
net.dv8tion.jda.api.events.stage.update.GenericStageInstanceUpdateEvent<StageInstance.PrivacyLevel>
net.dv8tion.jda.api.events.stage.update.StageInstanceUpdatePrivacyLevelEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<StageInstance, StageInstance.PrivacyLevel>
public class StageInstanceUpdatePrivacyLevelEvent
extends GenericStageInstanceUpdateEvent<StageInstance.PrivacyLevel>
Indicates that a
StageInstance updated its PrivacyLevel.
Can be used to retrieve the privacy level.
Identifier: privacy_level
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStageInstanceUpdatePrivacyLevelEvent(JDA api, long responseNumber, StageInstance stageInstance, StageInstance.PrivacyLevel previous) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueMethods inherited from class GenericStageInstanceUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericStageInstanceEvent
getChannel, getInstanceMethods inherited from class GenericGuildEvent
getGuildMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
StageInstanceUpdatePrivacyLevelEvent
public StageInstanceUpdatePrivacyLevelEvent(@Nonnull JDA api, long responseNumber, @Nonnull StageInstance stageInstance, @Nonnull StageInstance.PrivacyLevel previous)
-
-
Method Details
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<StageInstance, StageInstance.PrivacyLevel>- Overrides:
getOldValuein classGenericStageInstanceUpdateEvent<StageInstance.PrivacyLevel>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<StageInstance, StageInstance.PrivacyLevel>- Overrides:
getNewValuein classGenericStageInstanceUpdateEvent<StageInstance.PrivacyLevel>- Returns:
- The new value
-