Class SlashCommandBuilder

    • Constructor Detail

      • SlashCommandBuilder

        public SlashCommandBuilder()
        Creates a new slash command builder.
    • Method Detail

      • addOption

        public SlashCommandBuilder addOption​(SlashCommandOption option)
        Adds a slash command option to the slash command.
        Parameters:
        option - The option.
        Returns:
        The current instance in order to chain call methods.
      • setOptions

        public SlashCommandBuilder setOptions​(java.util.List<SlashCommandOption> options)
        Sets the slash commands for the slash command.
        Parameters:
        options - The options.
        Returns:
        The current instance in order to chain call methods.