Package discord4j.rest.entity
Class RestStageInstance
java.lang.Object
discord4j.rest.entity.RestStageInstance
Represents a stage instance entity in Discord.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RestStageInstancecreate(RestClient restClient, Snowflake channelId) Create aRestStageInstancefor a given channel ID.Mono<discord4j.discordjson.json.StageInstanceData>Requests to edit this stage instance.booleanReturns the channel ID.Mono<discord4j.discordjson.json.StageInstanceData>getData()Retrieve this stage instance's data upon subscription.inthashCode()
-
Method Details
-
create
Create aRestStageInstancefor a given channel ID. This method does not perform any API request.- Parameters:
restClient- the client to make API requestschannelId- the channel ID of this entity- Returns:
- a
RestStageInstancerepresented by this .
-
getChannelId
Returns the channel ID.- Returns:
- The channel ID of this stage instance
-
getData
Retrieve this stage instance's data upon subscription.- Returns:
- a
Monowhere, upon successful completion, emits theStageInstanceDatabelonging to this stage instance. If an error is received, it is emitted through theMono.
-
edit
public Mono<discord4j.discordjson.json.StageInstanceData> edit(discord4j.discordjson.json.StageInstanceModifyRequest request, @Nullable String reason) Requests to edit this stage instance.- Parameters:
request- AStageInstanceModifyRequestto parameterize this request.reason- The reason, if present.- Returns:
- A
Monowhere, upon successful completion, emits the editedStageInstanceData. If an error is received, it is emitted through theMono.
-
equals
-
hashCode
public int hashCode()
-