Class DetachedVoiceChannelImpl
- All Implemented Interfaces:
Comparable<GuildChannel>
,Formattable
,IAgeRestrictedChannel
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPositionableChannel
,ISlowmodeChannel
,IVoiceStatusChannel
,IWebhookContainer
,Channel
,VoiceChannel
,AudioChannel
,GuildChannel
,GuildMessageChannel
,MessageChannel
,StandardGuildChannel
,AudioChannelUnion
,ChannelUnion
,GuildChannelUnion
,GuildMessageChannelUnion
,IPermissionContainerUnion
,IWebhookContainerUnion
,MessageChannelUnion
,IDetachableEntity
,IMentionable
,ISnowflake
,IAgeRestrictedChannelMixin<DetachedVoiceChannelImpl>
,ICategorizableChannelMixin<DetachedVoiceChannelImpl>
,IInteractionPermissionMixin<DetachedVoiceChannelImpl>
,IInviteContainerMixin<DetachedVoiceChannelImpl>
,IPermissionContainerMixin<DetachedVoiceChannelImpl>
,IPositionableChannelMixin<DetachedVoiceChannelImpl>
,ISlowmodeChannelMixin<DetachedVoiceChannelImpl>
,IWebhookContainerMixin<DetachedVoiceChannelImpl>
,ChannelMixin<DetachedVoiceChannelImpl>
,VoiceChannelMixin<DetachedVoiceChannelImpl>
,AudioChannelMixin<DetachedVoiceChannelImpl>
,GuildChannelMixin<DetachedVoiceChannelImpl>
,GuildMessageChannelMixin<DetachedVoiceChannelImpl>
,MessageChannelMixin<DetachedVoiceChannelImpl>
,StandardGuildChannelMixin<DetachedVoiceChannelImpl>
,IDetachableEntityMixin
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL
Fields inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ISlowmodeChannel
MAX_SLOWMODE
Fields inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IVoiceStatusChannel
MAX_STATUS_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel
MAX_USERLIMIT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The audio bitrate of the voice audio that is transmitted in this channel.long
The id for the most recent message sent in this current MessageChannel.Returns theChannelManager
for this GuildChannel.A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.The raw region name for this channel.int
The slowmode set for this channel.The current voice channel status.getType()
TheChannelType
for this channelint
The maximum amount ofMembers
that be in an audio connection within this channel concurrently.boolean
Whether this entity is detached.boolean
isNSFW()
Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)modifyStatus
(String status) Change the current voice channel status.setBitrate
(int bitrate) setInteractionPermissions
(ChannelInteractionPermissions interactionPermissions) setLatestMessageIdLong
(long latestMessageId) setNSFW
(boolean nsfw) setSlowmode
(int slowmode) setUserLimit
(int userLimit) Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl
getParentCategoryIdLong, getPermissionOverrideMap, getPositionRaw, setParentCategory, setPosition
Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl
compareTo, getGuild
Methods inherited from class net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel, getIdLong, getJDA, getName, setName, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.AudioChannel
getRegion
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.AudioChannelMixin
checkCanAccess
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.AudioChannelUnion
asGuildMessageChannel, asStageChannel, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.ChannelMixin
delete, setName
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.ChannelUnion
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
getGuild, getJumpUrl
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin
checkCanManage, checkPermission, checkPermission, delete, hasPermission
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildChannelUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildMessageChannel
canTalk, clearReactionsById, clearReactionsById, deleteMessages, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildMessageChannelMixin
canDeleteOtherUsersMessages, checkCanAddReactions, checkCanControlMessagePins, checkCanRemoveReactions, checkCanSendFiles, checkCanSendMessage, checkCanSendMessageEmbeds, checkCanViewHistory, clearReactionsById, clearReactionsById, deleteMessagesByIds, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildMessageChannelUnion
asAudioChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getParentCategory, getParentCategoryId, getParentCategoryIdLong, getPositionInCategory
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ICategorizableChannelMixin
isSynced, setParentCategory
Methods inherited from interface net.dv8tion.jda.internal.entities.detached.mixin.IDetachableEntityMixin
checkAttached, detachedException, detachedRequiresChannelException
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IInviteContainerMixin
createInvite, retrieveInvites
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getRolePermissionOverrides
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPermissionContainerMixin
getPermissionContainer, getPermissionOverride, getPermissionOverrideMap, getPermissionOverrides, upsertPermissionOverride
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IPermissionContainerUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPositionableChannel
getPosition, getPositionRaw
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPositionableChannelMixin
setPosition
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IWebhookContainerMixin
createWebhook, deleteWebhookById, retrieveWebhooks
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IWebhookContainerUnion
asAudioChannel, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.MessageChannel
addReactionById, deleteMessageById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageFormatById, editMessageFormatById, endPollById, endPollById, getHistoryAfter, getHistoryAfter, getHistoryAround, getHistoryAround, getHistoryBefore, getHistoryBefore, getLatestMessageId, pinMessageById, purgeMessages, purgeMessagesById, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePollVotersById, retrievePollVotersById, retrieveReactionUsersById, retrieveReactionUsersById, retrieveReactionUsersById, sendFiles, sendMessageComponents, sendMessageComponents, sendMessageFormat, unpinMessageById
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.MessageChannelMixin
addReactionById, bulkDeleteMessages, deleteMessageById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageEmbedsById, getHistory, getHistoryAfter, getHistoryAround, getHistoryBefore, getHistoryFromBeginning, getIterableHistory, pinMessageById, purgeMessages, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePinnedMessages, retrieveReactionUsersById, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageEmbeds, sendMessageEmbeds, sendMessagePoll, sendTyping, unpinMessageById
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.MessageChannelUnion
asAudioChannel, asGroupChannel, asGuildMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel
createCopy
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.concrete.VoiceChannelMixin
canTalk, createCopy
-
Constructor Details
-
DetachedVoiceChannelImpl
-
-
Method Details
-
isDetached
public boolean isDetached()Description copied from interface:IDetachableEntity
Whether this entity is detached.If this returns
true
, this entity cannot be retrieved, will never be updated, and most methods that would otherwise return aRestAction
will throw aDetachedEntityException
instead.- Specified by:
isDetached
in interfaceIDetachableEntity
- Returns:
True
, if the entity is detached
-
getType
Description copied from interface:Channel
TheChannelType
for this channel -
getBitrate
public int getBitrate()Description copied from interface:AudioChannel
The audio bitrate of the voice audio that is transmitted in this channel. While higher bitrates can be sent to this channel, it will be scaled down by the client.
Default and recommended value is 64000- Specified by:
getBitrate
in interfaceAudioChannel
- Returns:
- The audio bitrate of this audio channel.
-
getRegionRaw
Description copied from interface:AudioChannel
The raw region name for this channel.
This will return null if the region is set to Automatic.- Specified by:
getRegionRaw
in interfaceAudioChannel
- Returns:
- Raw region name, or
null
if the region is set to automatic.
-
getUserLimit
public int getUserLimit()Description copied from interface:AudioChannel
The maximum amount ofMembers
that be in an audio connection within this channel concurrently.
Returns 0 if there is no limit.Moderators with the
VOICE_MOVE_OTHERS
permission can bypass this limit.- Specified by:
getUserLimit
in interfaceAudioChannel
- Returns:
- The maximum connections allowed in this channel concurrently
-
isNSFW
public boolean isNSFW()Description copied from interface:IAgeRestrictedChannel
Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)- Specified by:
isNSFW
in interfaceIAgeRestrictedChannel
- Returns:
- True, If this channel is age-restricted by the official Discord Client
-
getSlowmode
public int getSlowmode()Description copied from interface:ISlowmodeChannel
The slowmode set for this channel.
If slowmode is set, this returns anint
between 1 and 21600.
Otherwise, if no slowmode is set, this returns0
.Note bots are unaffected by this.
HavingMESSAGE_MANAGE
orMANAGE_CHANNEL
permission also grants immunity to slowmode.Special case
ForumChannels
use this to limit how many posts a user can create. The client refers to this as the post slowmode.- Specified by:
getSlowmode
in interfaceISlowmodeChannel
- Returns:
- The slowmode for this channel, between 1 and 21600, or
0
if no slowmode is set.
-
getLatestMessageIdLong
public long getLatestMessageIdLong()Description copied from interface:MessageChannel
The id for the most recent message sent in this current MessageChannel.This value is updated on each
MessageReceivedEvent
and the value might point to an already deleted message since the value is not cleared when the message is deleted, so callingMessageChannel.retrieveMessageById(long)
with this id can result in anUNKNOWN_MESSAGE
error- Specified by:
getLatestMessageIdLong
in interfaceMessageChannel
- Returns:
- The most recent message's id or 0 if no messages are present
-
getMembers
Description copied from interface:IMemberContainer
A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.
ForVoiceChannels
, this returns all Members that joined that VoiceChannel.
ForCategories
, this returns all Members who are in its child channels.- Specified by:
getMembers
in interfaceIMemberContainer
- Returns:
- An immutable List of
Members
that are in this GuildChannel.
-
getManager
Description copied from interface:GuildChannel
Returns theChannelManager
for this GuildChannel.
In the ChannelManager, you can modify the name, topic and position of this GuildChannel. You modify multiple fields in one request by chaining setters before callingRestAction.queue()
.- Specified by:
getManager
in interfaceAudioChannel
- Specified by:
getManager
in interfaceGuildChannel
- Specified by:
getManager
in interfaceICategorizableChannel
- Specified by:
getManager
in interfaceIPermissionContainer
- Specified by:
getManager
in interfaceIPositionableChannel
- Specified by:
getManager
in interfaceISlowmodeChannel
- Specified by:
getManager
in interfaceStandardGuildChannel
- Specified by:
getManager
in interfaceVoiceChannel
- Returns:
- The ChannelManager of this GuildChannel
- See Also:
-
getStatus
Description copied from interface:IVoiceStatusChannel
The current voice channel status.
This can be configured by users who are connected and have theset voice channel status
permission.- Specified by:
getStatus
in interfaceIVoiceStatusChannel
- Returns:
- The current voice channel status, or empty string if unset
-
modifyStatus
Description copied from interface:IVoiceStatusChannel
Change the current voice channel status.
This can be configured by users who are connected and have theset voice channel status
permission.- Specified by:
modifyStatus
in interfaceIVoiceStatusChannel
- Parameters:
status
- The new status, or empty to unset- Returns:
AuditableRestAction
-
getInteractionPermissions
- Specified by:
getInteractionPermissions
in interfaceIInteractionPermissionMixin<DetachedVoiceChannelImpl>
-
setBitrate
- Specified by:
setBitrate
in interfaceAudioChannelMixin<DetachedVoiceChannelImpl>
-
setRegion
- Specified by:
setRegion
in interfaceAudioChannelMixin<DetachedVoiceChannelImpl>
-
setUserLimit
- Specified by:
setUserLimit
in interfaceAudioChannelMixin<DetachedVoiceChannelImpl>
-
setNSFW
- Specified by:
setNSFW
in interfaceIAgeRestrictedChannelMixin<DetachedVoiceChannelImpl>
-
setSlowmode
- Specified by:
setSlowmode
in interfaceISlowmodeChannelMixin<DetachedVoiceChannelImpl>
-
setLatestMessageIdLong
- Specified by:
setLatestMessageIdLong
in interfaceMessageChannelMixin<DetachedVoiceChannelImpl>
-
setStatus
- Specified by:
setStatus
in interfaceVoiceChannelMixin<DetachedVoiceChannelImpl>
-
setInteractionPermissions
@Nonnull public DetachedVoiceChannelImpl setInteractionPermissions(@Nonnull ChannelInteractionPermissions interactionPermissions) - Specified by:
setInteractionPermissions
in interfaceIInteractionPermissionMixin<DetachedVoiceChannelImpl>
-