Package net.dv8tion.jda.api.events.stage
Class GenericStageInstanceEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.stage.GenericStageInstanceEvent
-
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericStageInstanceUpdateEvent,StageInstanceCreateEvent,StageInstanceDeleteEvent
public abstract class GenericStageInstanceEvent extends GenericGuildEvent
Indicates that aStageInstancewas created/deleted/changed.
Every StageInstanceEvent is derived from this event and can be casted.Can be used to detect any StageInstanceEvent.
-
-
Constructor Summary
Constructors Constructor Description GenericStageInstanceEvent(JDA api, long responseNumber, StageInstance stageInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StageChannelgetChannel()TheStageChannelthis instance belongs toStageInstancegetInstance()The affectedStageInstance-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericStageInstanceEvent
public GenericStageInstanceEvent(@Nonnull JDA api, long responseNumber, @Nonnull StageInstance stageInstance)
-
-
Method Detail
-
getInstance
@Nonnull public StageInstance getInstance()
The affectedStageInstance- Returns:
- The
StageInstance
-
getChannel
@Nonnull public StageChannel getChannel()
TheStageChannelthis instance belongs to- Returns:
- The StageChannel
-
-