Package org.javacord.api.entity.channel
Class ServerVoiceChannelBuilder
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelBuilder<T>
-
- org.javacord.api.entity.channel.RegularServerChannelBuilder<ServerVoiceChannelBuilder>
-
- org.javacord.api.entity.channel.ServerVoiceChannelBuilder
-
public class ServerVoiceChannelBuilder extends RegularServerChannelBuilder<ServerVoiceChannelBuilder>
This class is used to create new server voice channels.
-
-
Field Summary
-
Fields inherited from class org.javacord.api.entity.channel.ServerChannelBuilder
myClass
-
-
Constructor Summary
Constructors Constructor Description ServerVoiceChannelBuilder(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<ServerVoiceChannel>create()Creates the server voice channel.ServerVoiceChannelBuildersetBitrate(int bitrate)Sets the bitrate of the channel.ServerVoiceChannelBuildersetCategory(ChannelCategory category)Sets the category of the channel.ServerVoiceChannelBuildersetUserlimit(int userlimit)Sets the user limit 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
-
ServerVoiceChannelBuilder
public ServerVoiceChannelBuilder(Server server)
Creates a new server text channel builder.- Parameters:
server- The server of the server text channel.
-
-
Method Detail
-
setCategory
public ServerVoiceChannelBuilder 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.
-
setBitrate
public ServerVoiceChannelBuilder setBitrate(int bitrate)
Sets the bitrate of the channel.- Parameters:
bitrate- The bitrate of the channel.- Returns:
- The current instance in order to chain call methods.
-
setUserlimit
public ServerVoiceChannelBuilder setUserlimit(int userlimit)
Sets the user limit of the channel.- Parameters:
userlimit- The user limit of the channel.- Returns:
- The current instance in order to chain call methods.
-
create
public java.util.concurrent.CompletableFuture<ServerVoiceChannel> create()
Creates the server voice channel.- Returns:
- The created voice channel.
-
-