Class ServerVoiceChannelBuilder

    • 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.