Package org.javacord.core.entity.channel
Class ServerTextChannelUpdaterDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
-
- org.javacord.core.entity.channel.ServerTextChannelUpdaterDelegateImpl
-
- All Implemented Interfaces:
ServerChannelUpdaterDelegate
,ServerTextChannelUpdaterDelegate
public class ServerTextChannelUpdaterDelegateImpl extends ServerChannelUpdaterDelegateImpl implements ServerTextChannelUpdaterDelegate
The implementation ofServerTextChannelUpdaterDelegate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelCategory
category
The category to update.protected int
delay
The slowmode delay.protected boolean
modifyCategory
Whether the category should be modified or not.protected boolean
modifyDelay
Whether the slowmode delay should be modified or not.protected Boolean
nsfw
The nsfw flag to update.protected String
topic
The topic to update.-
Fields inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
channel, name, overwrittenRolePermissions, overwrittenUserPermissions, position, reason
-
-
Constructor Summary
Constructors Constructor Description ServerTextChannelUpdaterDelegateImpl(ServerTextChannel channel)
Creates a new server text channel updater delegate.
-
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
setCategory(ChannelCategory category)
void
setNsfwFlag(boolean nsfw)
void
setSlowmodeDelayInSeconds(int delay)
void
setTopic(String topic)
-
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.ServerChannelUpdaterDelegate
addPermissionOverwrite, removePermissionOverwrite, setAuditLogReason, setName, setRawPosition, update
-
Methods inherited from class org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
addPermissionOverwrite, removePermissionOverwrite, setAuditLogReason, setName, setRawPosition, update
-
-
-
-
Field Detail
-
topic
protected String topic
The topic to update.
-
nsfw
protected Boolean nsfw
The nsfw flag to update.
-
category
protected ChannelCategory category
The category to update.
-
modifyCategory
protected boolean modifyCategory
Whether the category should be modified or not.
-
delay
protected int delay
The slowmode delay.
-
modifyDelay
protected boolean modifyDelay
Whether the slowmode delay should be modified or not.
-
-
Constructor Detail
-
ServerTextChannelUpdaterDelegateImpl
public ServerTextChannelUpdaterDelegateImpl(ServerTextChannel channel)
Creates a new server text channel updater delegate.- Parameters:
channel
- The channel to update.
-
-
Method Detail
-
setTopic
public void setTopic(String topic)
- Specified by:
setTopic
in interfaceServerTextChannelUpdaterDelegate
-
setNsfwFlag
public void setNsfwFlag(boolean nsfw)
- Specified by:
setNsfwFlag
in interfaceServerTextChannelUpdaterDelegate
-
setCategory
public void setCategory(ChannelCategory category)
- Specified by:
setCategory
in interfaceServerTextChannelUpdaterDelegate
-
removeCategory
public void removeCategory()
- Specified by:
removeCategory
in interfaceServerTextChannelUpdaterDelegate
-
setSlowmodeDelayInSeconds
public void setSlowmodeDelayInSeconds(int delay)
- Specified by:
setSlowmodeDelayInSeconds
in interfaceServerTextChannelUpdaterDelegate
-
prepareUpdateBody
protected boolean prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
- Overrides:
prepareUpdateBody
in classServerChannelUpdaterDelegateImpl
-
-