Class ServerTextChannelBuilder

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