Class StageChannel
java.lang.Object
discord4j.core.object.entity.channel.StageChannel
- All Implemented Interfaces:
DiscordObject
,AudioChannel
,CategorizableChannel
,Channel
,GuildChannel
,TopLevelGuildChannel
,Entity
A Discord stage channel.
-
Nested Class Summary
Nested classes/interfaces inherited from interface discord4j.core.object.entity.channel.Channel
Channel.Flag, Channel.Type
-
Constructor Summary
ConstructorDescriptionStageChannel
(GatewayDiscordClient gateway, discord4j.discordjson.json.ChannelData data) Constructs aStageChannel
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.core.spec.StageChannelEditMono
edit()
Requests to edit this stage channel.edit
(discord4j.core.spec.StageChannelEditSpec spec) Requests to edit this stage channel.final boolean
final GatewayDiscordClient
Returns theGatewayDiscordClient
that created this object.final discord4j.discordjson.json.ChannelData
getData()
Gets the raw data as represented by Discord.getEffectivePermissions
(Snowflake memberId) Gets the permissions for the given member, taking into account permission overwrites in this channel.getEffectivePermissions
(Member member) Gets the permissions for the given member, taking into account permission overwrites in this channel.Requests to retrieve the voice states of this channel with a request to speak.final RestChannel
Return aRestChannel
handle to execute REST API operations on this entity.Requests to retrieve the voice states of this channel associated to speaker users.Returns the current voice connection registered for this stage channel's guild.final int
hashCode()
Requests to determine if the member represented by the providedSnowflake
is a speaker of this stage channel.Requests to retrieve if there is aStageInstance
for this channel.startStageLive
(String topic, String reason) Requests to start aStageInstance
on this channel.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface discord4j.core.object.entity.channel.AudioChannel
getBitrate, getRtcRegion, getVoiceStates, isMemberConnected, join, join, join, sendConnectVoiceState, sendDisconnectVoiceState
Methods inherited from interface discord4j.core.object.entity.channel.CategorizableChannel
createInvite, createInvite, createInvite, getCategory, getCategory, getCategoryId, getInvites, getRateLimitPerUser
Methods inherited from interface discord4j.core.object.entity.channel.Channel
delete, delete, getData, getId, getMention, getRestChannel, getType
Methods inherited from interface discord4j.core.object.DiscordObject
getClient
Methods inherited from interface discord4j.core.object.entity.channel.GuildChannel
getEffectivePermissions, getEffectivePermissions, getGuild, getGuild, getGuildId, getName
Methods inherited from interface discord4j.core.object.entity.channel.TopLevelGuildChannel
addMemberOverwrite, addMemberOverwrite, addRoleOverwrite, addRoleOverwrite, getOverwriteForMember, getOverwriteForRole, getPermissionOverwrites, getPosition, getRawPosition
-
Constructor Details
-
StageChannel
Constructs aStageChannel
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
edit
public discord4j.core.spec.StageChannelEditMono edit()Requests to edit this stage channel. Properties specifying how to edit this stage channel can be set via thewithXxx
methods of the returnedStageChannelEditMono
.- Returns:
- A
StageChannelEditMono
where, upon successful completion, emits the editedStageChannel
. If an error is received, it is emitted through theStageChannelEditMono
.
-
edit
Requests to edit this stage channel.- Parameters:
spec
- an immutable object that specifies how to edit this stage channel- Returns:
- A
Mono
where, upon successful completion, emits the editedStageChannel
. If an error is received, it is emitted through theMono
.
-
isSpeaker
Requests to determine if the member represented by the providedSnowflake
is a speaker of this stage channel. -
getVoiceConnection
Returns the current voice connection registered for this stage channel's guild.- Specified by:
getVoiceConnection
in interfaceAudioChannel
- Returns:
- A
Mono
ofVoiceConnection
for this stage channel's guild if present, or empty otherwise. The resultingMono
will also complete empty if the registered voice connection is not associated with this stage channel.
-
getRequestsToSpeak
Requests to retrieve the voice states of this channel with a request to speak.- Returns:
- A
Flux
that continually emits thevoice states
of this stage channel with a request to speak. If an error is received, it is emitted through theFlux
.
-
getSpeakers
Requests to retrieve the voice states of this channel associated to speaker users.- Returns:
- A
Flux
that continually emits thevoice states
of this stage channel associated to speaker users. If an error is received, it is emitted through theFlux
.
-
isStageLive
Requests to retrieve if there is aStageInstance
for this channel.- Returns:
- A
Mono
where, upon successful completion, emitstrue
if this stage channel is associated with aStageInstance
,false
otherwise. If an error is received, it is emitted through theMono
.
-
startStageLive
Requests to start aStageInstance
on this channel.- Parameters:
topic
- The topic of thisStageInstance
reason
- The reason, if present- Returns:
- A
Mono
where, upon successful completion, emits aStageInstance
created for this channel with the specified . If an error is received, it is emitted through theMono
-
toString
-
getEffectivePermissions
Description copied from interface:GuildChannel
Gets the permissions for the given member, taking into account permission overwrites in this channel.- Specified by:
getEffectivePermissions
in interfaceGuildChannel
- Parameters:
memberId
- The ID of the member to get permissions for.- Returns:
- The permissions for the given member.
-
getEffectivePermissions
Description copied from interface:GuildChannel
Gets the permissions for the given member, taking into account permission overwrites in this channel.- Specified by:
getEffectivePermissions
in interfaceGuildChannel
- Parameters:
member
- The member to get permissions for.- Returns:
- The permissions for the given member.
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
getRestChannel
Description copied from interface:Channel
Return aRestChannel
handle to execute REST API operations on this entity.- Specified by:
getRestChannel
in interfaceChannel
-
getData
public final discord4j.discordjson.json.ChannelData getData()Description copied from interface:Channel
Gets the raw data as represented by Discord. -
equals
-
hashCode
public final int hashCode()
-