Package org.javacord.api.entity.channel
Interface ServerStageVoiceChannel
-
- All Superinterfaces:
Categorizable,Channel,ChannelAttachableListenerManager,ChannelSpecialization,java.lang.Comparable<RegularServerChannel>,Deletable,DiscordEntity,java.util.Formattable,Nameable,RegularServerChannel,ServerChannel,ServerChannelAttachableListenerManager,ServerStageVoiceChannelAttachableListenerManager,ServerVoiceChannel,ServerVoiceChannelAttachableListenerManager,Specializable<ChannelSpecialization>,Updatable,UpdatableFromCache,VoiceChannel,VoiceChannelAttachableListenerManager
public interface ServerStageVoiceChannel extends ServerVoiceChannel, ServerStageVoiceChannelAttachableListenerManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<ServerStageVoiceChannel>getCurrentCachedInstance()Gets an updated instance of this entity from the cache.default java.util.concurrent.CompletableFuture<ServerStageVoiceChannel>getLatestInstance()Gets an updated instance of this entity from the cache or from Discord directly.java.util.Optional<java.lang.String>getTopic()Gets the topic of this.default ChannelTypegetType()Gets the type of the channel.-
Methods inherited from interface org.javacord.api.entity.channel.Categorizable
getCategory
-
Methods inherited from interface org.javacord.api.entity.channel.Channel
asCategorizable, asChannelCategory, asPrivateChannel, asRegularServerChannel, asServerChannel, asServerForumChannel, asServerStageVoiceChannel, asServerTextChannel, asServerThreadChannel, asServerVoiceChannel, asTextChannel, asVoiceChannel, canSee, canYouSee
-
Methods inherited from interface org.javacord.api.listener.channel.ChannelAttachableListenerManager
addChannelAttachableListener, getChannelAttachableListeners, removeChannelAttachableListener, removeListener
-
Methods inherited from interface org.javacord.api.entity.Deletable
delete, delete, deleteAfter, deleteAfter, deleteAfter, deleteAfter, getApi
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.api.entity.channel.RegularServerChannel
canCreateInstantInvite, canYouCreateInstantInvite, compareTo, getEffectiveAllowedPermissions, getEffectiveDeniedPermissions, getEffectiveOverwrittenPermissions, getEffectivePermissions, getOverwrittenPermissions, getOverwrittenPermissions, getOverwrittenRolePermissions, getOverwrittenUserPermissions, getPosition, getRawPosition, hasAnyPermission, hasPermission, hasPermissions, updateRawPosition
-
Methods inherited from interface org.javacord.api.entity.channel.ServerChannel
createInviteBuilder, getInvites, getServer, updateName
-
Methods inherited from interface org.javacord.api.listener.channel.server.ServerChannelAttachableListenerManager
addServerChannelAttachableListener, addServerChannelChangeNameListener, addServerChannelChangeOverwrittenPermissionsListener, addServerChannelChangePositionListener, addServerChannelDeleteListener, addVoiceStateUpdateListener, getServerChannelAttachableListeners, getServerChannelChangeNameListeners, getServerChannelChangeOverwrittenPermissionsListeners, getServerChannelChangePositionListeners, getServerChannelDeleteListeners, getVoiceStateUpdateListeners, removeListener, removeServerChannelAttachableListener
-
Methods inherited from interface org.javacord.api.listener.channel.server.voice.ServerStageVoiceChannelAttachableListenerManager
addServerStageVoiceChannelAttachableListener, addServerStageVoiceChannelChangeTopicListener, getServerStageVoiceChannelAttachableListeners, getServerStageVoiceChannelChangeTopicListeners, removeListener, removeServerStageVoiceChannelAttachableListener
-
Methods inherited from interface org.javacord.api.entity.channel.ServerVoiceChannel
canConnect, canDeafenUsers, canMoveUsers, canMuteUsers, canSpeak, canUseVideo, canUseVoiceActivation, canYouConnect, canYouDeafenUsers, canYouMoveUsers, canYouMuteUsers, canYouSpeak, canYouUseVideo, canYouUseVoiceActivation, connect, connect, createUpdater, disconnect, getBitrate, getConnectedUserIds, getConnectedUsers, getUserLimit, isConnected, isConnected, isNsfw, isPrioritySpeaker, removeCategory, removeUserLimit, updateBitrate, updateCategory, updateNsfwFlag, updateUserLimit
-
Methods inherited from interface org.javacord.api.listener.channel.server.voice.ServerVoiceChannelAttachableListenerManager
addServerVoiceChannelAttachableListener, addServerVoiceChannelChangeBitrateListener, addServerVoiceChannelChangeNsfwListener, addServerVoiceChannelChangeUserLimitListener, addServerVoiceChannelMemberJoinListener, addServerVoiceChannelMemberLeaveListener, getServerVoiceChannelAttachableListeners, getServerVoiceChannelChangeBitrateListeners, getServerVoiceChannelChangeNsfwListeners, getServerVoiceChannelChangeUserLimitListeners, getServerVoiceChannelMemberJoinListeners, getServerVoiceChannelMemberLeaveListeners, removeListener, removeServerVoiceChannelAttachableListener
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
Methods inherited from interface org.javacord.api.listener.channel.VoiceChannelAttachableListenerManager
addVoiceChannelAttachableListener, getVoiceChannelAttachableListeners, removeListener, removeVoiceChannelAttachableListener
-
-
-
-
Method Detail
-
getType
default ChannelType getType()
Description copied from interface:ChannelGets the type of the channel.
-
getTopic
java.util.Optional<java.lang.String> getTopic()
Gets the topic of this.- Returns:
- The topic of this channel.
-
getCurrentCachedInstance
default java.util.Optional<ServerStageVoiceChannel> getCurrentCachedInstance()
Description copied from interface:UpdatableFromCacheGets an updated instance of this entity from the cache. This is for example necessary if an instance got invalid by a reconnect to Discord which invalidates all existing instances which means they do not get any further updates from Discord applied. Due to that, references to instances should usually not be held for an extended period of time. If they are, this method can be used to retrieve the current instance from the cache, that gets updates from Discord, in case this one was invalidated.This method returns the currently cached entity, or an empty
Optionalif the entity is not cached any longer, for example because it was deleted or the message was thrown out of the cache.- Specified by:
getCurrentCachedInstancein interfaceChannel- Specified by:
getCurrentCachedInstancein interfaceRegularServerChannel- Specified by:
getCurrentCachedInstancein interfaceServerChannel- Specified by:
getCurrentCachedInstancein interfaceServerVoiceChannel- Specified by:
getCurrentCachedInstancein interfaceUpdatableFromCache- Specified by:
getCurrentCachedInstancein interfaceVoiceChannel- Returns:
- The current cached instance.
-
getLatestInstance
default java.util.concurrent.CompletableFuture<ServerStageVoiceChannel> getLatestInstance()
Description copied from interface:UpdatableGets an updated instance of this entity from the cache or from Discord directly. This is for example necessary if an instance got invalid by a reconnect to Discord which invalidates all existing instances which means they do not get any further updates from Discord applied. Due to that, references to instances should usually not be held for an extended period of time. If they are, this method can be used to retrieve the current instance from the cache if present or from Discord directly.This method returns the currently cached entity if present, or request the entity from Discord if it is not cached or not permanently cached. If the entity is a fully cached entity and is not in the cache any longer, for example because it was deleted or the message was thrown out of the cache, the
CompletableFuturecompletes exceptionally with aNoSuchElementException. If a request to Discord is made, the according remote call exception will be used to complete theCompletableFutureexceptionally.- Specified by:
getLatestInstancein interfaceChannel- Specified by:
getLatestInstancein interfaceRegularServerChannel- Specified by:
getLatestInstancein interfaceServerChannel- Specified by:
getLatestInstancein interfaceServerVoiceChannel- Specified by:
getLatestInstancein interfaceUpdatable- Specified by:
getLatestInstancein interfaceUpdatableFromCache- Specified by:
getLatestInstancein interfaceVoiceChannel- Returns:
- The current cached instance.
-
-