Package org.javacord.api.entity.channel
Class ServerForumChannelBuilder
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelBuilder<T>
-
- org.javacord.api.entity.channel.RegularServerChannelBuilder<ServerForumChannelBuilder>
-
- org.javacord.api.entity.channel.ServerForumChannelBuilder
-
public class ServerForumChannelBuilder extends RegularServerChannelBuilder<ServerForumChannelBuilder>
This class is used to create new server forum channels.
-
-
Field Summary
-
Fields inherited from class org.javacord.api.entity.channel.ServerChannelBuilder
myClass
-
-
Constructor Summary
Constructors Constructor Description ServerForumChannelBuilder(Server server)Creates a new server forum channel builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ServerForumChannel>create()Creates the server forum channel.ServerForumChannelBuildersetCategory(ChannelCategory category)Sets the category of the channel.-
Methods inherited from class org.javacord.api.entity.channel.RegularServerChannelBuilder
addPermissionOverwrite, removePermissionOverwrite, setRawPosition
-
Methods inherited from class org.javacord.api.entity.channel.ServerChannelBuilder
setAuditLogReason, setName
-
-
-
-
Constructor Detail
-
ServerForumChannelBuilder
public ServerForumChannelBuilder(Server server)
Creates a new server forum channel builder.- Parameters:
server- The server of the server forum channel.
-
-
Method Detail
-
setCategory
public ServerForumChannelBuilder setCategory(ChannelCategory category)
Sets the category of the channel.- Parameters:
category- The category of the channel.- Returns:
- The current instance in order to chain call methods.
-
create
public java.util.concurrent.CompletableFuture<ServerForumChannel> create()
Creates the server forum channel.- Returns:
- The created forum channel.
-
-