Package discord4j.core.event.domain
Class StageRequestToSpeakEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.VoiceStateUpdateEvent
discord4j.core.event.domain.StageRequestToSpeakEvent
Dispatched when a user connected to a stage channel makes a request to speak.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionStageRequestToSpeakEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceState current, VoiceState old) -
Method Summary
Modifier and TypeMethodDescriptionRequests to invite themember
who made the initial request to join stage speakers.Requests to deny the initial speak request.Get the requesting member.Get the stage instance for this request.toString()
Methods inherited from class discord4j.core.event.domain.VoiceStateUpdateEvent
getCurrent, getOld, isJoinEvent, isLeaveEvent, isMoveEvent
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
StageRequestToSpeakEvent
public StageRequestToSpeakEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, VoiceState current, @Nullable VoiceState old)
-
-
Method Details
-
acceptRequest
Requests to invite themember
who made the initial request to join stage speakers.- Returns:
- A
Mono
where, upon successful completion, emits nothing; indicating the member has been invited to the speakers. If an error is received, it is emitted through theMono
.
-
denyRequest
Requests to deny the initial speak request.- Returns:
- A
Mono
where, upon successful completion, emits nothing; indicating the member request to speak has been denied. If an error is received, it is emitted through theMono
.
-
getStageInstance
Get the stage instance for this request.- Returns:
- A
Mono
where, upon successful completion, emits theStageInstance
in which the request has been made
-
getMember
Get the requesting member. -
toString
- Overrides:
toString
in classVoiceStateUpdateEvent
-