Package org.javacord.core.entity.channel
Class ServerChannelUpdaterDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelUpdaterDelegateImpl
-
- All Implemented Interfaces:
ServerChannelUpdaterDelegate
- Direct Known Subclasses:
ServerTextChannelUpdaterDelegateImpl
,ServerVoiceChannelUpdaterDelegateImpl
public class ServerChannelUpdaterDelegateImpl extends Object implements ServerChannelUpdaterDelegate
The implementation ofServerChannelUpdaterDelegate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerChannel
channel
The channel to update.protected String
name
The name to update.protected Map<Long,Permissions>
overwrittenRolePermissions
A map with all overwritten role permissions.protected Map<Long,Permissions>
overwrittenUserPermissions
A map with all overwritten user permissions.protected Integer
position
The position to update.protected String
reason
The reason for the update.
-
Constructor Summary
Constructors Constructor Description ServerChannelUpdaterDelegateImpl(ServerChannel channel)
Creates a new server channel updater delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Permissionable & DiscordEntity>
voidaddPermissionOverwrite(T permissionable, Permissions permissions)
protected boolean
prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
<T extends Permissionable & DiscordEntity>
voidremovePermissionOverwrite(T permissionable)
void
setAuditLogReason(String reason)
void
setName(String name)
void
setRawPosition(int rawPosition)
CompletableFuture<Void>
update()
-
-
-
Field Detail
-
channel
protected final ServerChannel channel
The channel to update.
-
reason
protected String reason
The reason for the update.
-
name
protected String name
The name to update.
-
position
protected Integer position
The position to update.
-
overwrittenUserPermissions
protected Map<Long,Permissions> overwrittenUserPermissions
A map with all overwritten user permissions.
-
overwrittenRolePermissions
protected Map<Long,Permissions> overwrittenRolePermissions
A map with all overwritten role permissions.
-
-
Constructor Detail
-
ServerChannelUpdaterDelegateImpl
public ServerChannelUpdaterDelegateImpl(ServerChannel channel)
Creates a new server channel updater delegate.- Parameters:
channel
- The channel to update.
-
-
Method Detail
-
setAuditLogReason
public void setAuditLogReason(String reason)
- Specified by:
setAuditLogReason
in interfaceServerChannelUpdaterDelegate
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceServerChannelUpdaterDelegate
-
setRawPosition
public void setRawPosition(int rawPosition)
- Specified by:
setRawPosition
in interfaceServerChannelUpdaterDelegate
-
addPermissionOverwrite
public <T extends Permissionable & DiscordEntity> void addPermissionOverwrite(T permissionable, Permissions permissions)
- Specified by:
addPermissionOverwrite
in interfaceServerChannelUpdaterDelegate
-
removePermissionOverwrite
public <T extends Permissionable & DiscordEntity> void removePermissionOverwrite(T permissionable)
- Specified by:
removePermissionOverwrite
in interfaceServerChannelUpdaterDelegate
-
update
public CompletableFuture<Void> update()
- Specified by:
update
in interfaceServerChannelUpdaterDelegate
-
prepareUpdateBody
protected boolean prepareUpdateBody(com.fasterxml.jackson.databind.node.ObjectNode body)
-
-