Package org.javacord.api.entity.channel
Class ServerForumChannelUpdater
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelUpdater<T>
-
- org.javacord.api.entity.channel.RegularServerChannelUpdater<ServerForumChannelUpdater>
-
- org.javacord.api.entity.channel.ServerForumChannelUpdater
-
public class ServerForumChannelUpdater extends RegularServerChannelUpdater<ServerForumChannelUpdater>
This class can be used to update server forum channels.
-
-
Field Summary
-
Fields inherited from class org.javacord.api.entity.channel.RegularServerChannelUpdater
regularServerChannelUpdaterDelegate
-
-
Constructor Summary
Constructors Constructor Description ServerForumChannelUpdater(ServerForumChannel channel)Creates a new server forum channel updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerForumChannelUpdaterremoveCategory()Queues the category to be removed.ServerForumChannelUpdatersetCategory(ChannelCategory category)Queues the category to be updated.java.util.concurrent.CompletableFuture<java.lang.Void>update()Performs the queued updates.-
Methods inherited from class org.javacord.api.entity.channel.RegularServerChannelUpdater
addPermissionOverwrite, removePermissionOverwrite, setRawPosition
-
Methods inherited from class org.javacord.api.entity.channel.ServerChannelUpdater
setAuditLogReason, setName
-
-
-
-
Constructor Detail
-
ServerForumChannelUpdater
public ServerForumChannelUpdater(ServerForumChannel channel)
Creates a new server forum channel updater.- Parameters:
channel- The channel to update.
-
-
Method Detail
-
setCategory
public ServerForumChannelUpdater setCategory(ChannelCategory category)
Queues the category to be updated.- Parameters:
category- The new category of the channel.- Returns:
- The current instance in order to chain call methods.
-
removeCategory
public ServerForumChannelUpdater removeCategory()
Queues the category to be removed.- Returns:
- The current instance in order to chain call methods.
-
update
public java.util.concurrent.CompletableFuture<java.lang.Void> update()
Description copied from class:ServerChannelUpdaterPerforms the queued updates.- Overrides:
updatein classServerChannelUpdater<ServerForumChannelUpdater>- Returns:
- A future to check if the update was successful.
-
-