Package org.javacord.core.entity.channel
Class ServerVoiceChannelUpdaterDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
-
- org.javacord.core.entity.channel.RegularServerChannelUpdaterDelegateImpl
-
- org.javacord.core.entity.channel.ServerVoiceChannelUpdaterDelegateImpl
-
- All Implemented Interfaces:
RegularServerChannelUpdaterDelegate
,ServerChannelUpdaterDelegate
,ServerVoiceChannelUpdaterDelegate
public class ServerVoiceChannelUpdaterDelegateImpl extends RegularServerChannelUpdaterDelegateImpl implements ServerVoiceChannelUpdaterDelegate
The implementation ofServerVoiceChannelUpdaterDelegate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Integer
bitrate
The bitrate to update.protected ChannelCategory
category
The category to update.protected boolean
modifyCategory
Whether the category should be modified or not.protected java.lang.Boolean
nsfw
The nsfw flag to update.protected java.lang.Integer
userLimit
The user limit to update.-
Fields inherited from class org.javacord.core.entity.channel.RegularServerChannelUpdaterDelegateImpl
channel, overwrittenRolePermissions, overwrittenUserPermissions, position
-
Fields inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
name, reason
-
-
Constructor Summary
Constructors Constructor Description ServerVoiceChannelUpdaterDelegateImpl(ServerVoiceChannel channel)
Creates a new server voice channel updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
void
removeCategory()
void
removeUserLimit()
void
setBitrate(int bitrate)
void
setCategory(ChannelCategory category)
void
setNsfw(java.lang.Boolean nsfw)
void
setUserLimit(int userLimit)
-
Methods inherited from class org.javacord.core.entity.channel.RegularServerChannelUpdaterDelegateImpl
addPermissionOverwrite, removePermissionOverwrite, setRawPosition
-
Methods inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
setAuditLogReason, setName, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.channel.internal.RegularServerChannelUpdaterDelegate
addPermissionOverwrite, removePermissionOverwrite, setRawPosition
-
Methods inherited from interface org.javacord.api.entity.channel.internal.ServerChannelUpdaterDelegate
setAuditLogReason, setName, update
-
-
-
-
Field Detail
-
bitrate
protected java.lang.Integer bitrate
The bitrate to update.
-
nsfw
protected java.lang.Boolean nsfw
The nsfw flag to update.
-
userLimit
protected java.lang.Integer userLimit
The user limit to update.
-
category
protected ChannelCategory category
The category to update.
-
modifyCategory
protected boolean modifyCategory
Whether the category should be modified or not.
-
-
Constructor Detail
-
ServerVoiceChannelUpdaterDelegateImpl
public ServerVoiceChannelUpdaterDelegateImpl(ServerVoiceChannel channel)
Creates a new server voice channel updater.- Parameters:
channel
- The channel to update.
-
-
Method Detail
-
setBitrate
public void setBitrate(int bitrate)
- Specified by:
setBitrate
in interfaceServerVoiceChannelUpdaterDelegate
-
setUserLimit
public void setUserLimit(int userLimit)
- Specified by:
setUserLimit
in interfaceServerVoiceChannelUpdaterDelegate
-
removeUserLimit
public void removeUserLimit()
- Specified by:
removeUserLimit
in interfaceServerVoiceChannelUpdaterDelegate
-
setCategory
public void setCategory(ChannelCategory category)
- Specified by:
setCategory
in interfaceServerVoiceChannelUpdaterDelegate
-
removeCategory
public void removeCategory()
- Specified by:
removeCategory
in interfaceServerVoiceChannelUpdaterDelegate
-
setNsfw
public void setNsfw(java.lang.Boolean nsfw)
- Specified by:
setNsfw
in interfaceServerVoiceChannelUpdaterDelegate
-
prepareUpdateBody
protected boolean prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
- Overrides:
prepareUpdateBody
in classRegularServerChannelUpdaterDelegateImpl
-
-