Package org.javacord.api.entity.channel
Class ServerTextChannelBuilder
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelBuilder<T>
-
- org.javacord.api.entity.channel.RegularServerChannelBuilder<ServerTextChannelBuilder>
-
- org.javacord.api.entity.channel.ServerTextChannelBuilder
-
public class ServerTextChannelBuilder extends RegularServerChannelBuilder<ServerTextChannelBuilder>
This class is used to create new server text channels.
-
-
Field Summary
-
Fields inherited from class org.javacord.api.entity.channel.ServerChannelBuilder
myClass
-
-
Constructor Summary
Constructors Constructor Description ServerTextChannelBuilder(Server server)
Creates a new server text channel builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ServerTextChannel>
create()
Creates the server text channel.ServerTextChannelBuilder
setCategory(ChannelCategory category)
Sets the category of the channel.ServerTextChannelBuilder
setSlowmodeDelayInSeconds(int delay)
Sets the slowmode of the channel.ServerTextChannelBuilder
setTopic(java.lang.String topic)
Sets the topic 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
-
ServerTextChannelBuilder
public ServerTextChannelBuilder(Server server)
Creates a new server text channel builder.- Parameters:
server
- The server of the server text channel.
-
-
Method Detail
-
setTopic
public ServerTextChannelBuilder setTopic(java.lang.String topic)
Sets the topic of the channel.- Parameters:
topic
- The topic of the channel.- Returns:
- The current instance in order to chain call methods.
-
setCategory
public ServerTextChannelBuilder 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.
-
setSlowmodeDelayInSeconds
public ServerTextChannelBuilder setSlowmodeDelayInSeconds(int delay)
Sets the slowmode of the channel.- Parameters:
delay
- The delay in seconds.- Returns:
- The current instance in order to chain call methods.
-
create
public java.util.concurrent.CompletableFuture<ServerTextChannel> create()
Creates the server text channel.- Returns:
- The created text channel.
-
-