Package org.javacord.api.entity.channel
Class ChannelCategoryBuilder
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelBuilder
-
- org.javacord.api.entity.channel.ChannelCategoryBuilder
-
public class ChannelCategoryBuilder extends ServerChannelBuilder
This class is used to create new channel categories.
-
-
Constructor Summary
Constructors Constructor Description ChannelCategoryBuilder(Server server)Creates a new channel category builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<ChannelCategory>create()Creates the channel category.ChannelCategoryBuildersetAuditLogReason(String reason)Sets the reason for this creation.ChannelCategoryBuildersetName(String name)Sets the name of the channel.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.javacord.api.entity.channel.ServerChannelBuilder
addPermissionOverwrite, removePermissionOverwrite
-
-
-
-
Constructor Detail
-
ChannelCategoryBuilder
public ChannelCategoryBuilder(Server server)
Creates a new channel category builder.- Parameters:
server- The server of the channel category.
-
-
Method Detail
-
setAuditLogReason
public ChannelCategoryBuilder setAuditLogReason(String reason)
Description copied from class:ServerChannelBuilderSets the reason for this creation. This reason will be visible in the audit log entry(s).- Overrides:
setAuditLogReasonin classServerChannelBuilder- Parameters:
reason- The reason for this update.- Returns:
- The current instance in order to chain call methods.
-
setName
public ChannelCategoryBuilder setName(String name)
Description copied from class:ServerChannelBuilderSets the name of the channel.- Overrides:
setNamein classServerChannelBuilder- Parameters:
name- The name of the channel.- Returns:
- The current instance in order to chain call methods.
-
create
public CompletableFuture<ChannelCategory> create()
Creates the channel category.- Returns:
- The created channel category.
-
-