Package org.javacord.api.interaction
Class SlashCommandUpdater
- java.lang.Object
-
- org.javacord.api.interaction.ApplicationCommandUpdater<SlashCommand,SlashCommandUpdaterDelegate,SlashCommandUpdater>
-
- org.javacord.api.interaction.SlashCommandUpdater
-
public class SlashCommandUpdater extends ApplicationCommandUpdater<SlashCommand,SlashCommandUpdaterDelegate,SlashCommandUpdater>
-
-
Constructor Summary
Constructors Constructor Description SlashCommandUpdater(long commandId)Creates a new slash command updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlashCommandUpdatersetSlashCommandOptions(java.util.List<SlashCommandOption> slashCommandOptions)Sets the new slash command options.-
Methods inherited from class org.javacord.api.interaction.ApplicationCommandUpdater
addDescriptionLocalization, addNameLocalization, getDelegate, setDefaultDisabled, setDefaultEnabledForEveryone, setDefaultEnabledForPermissions, setDefaultEnabledForPermissions, setDescription, setEnabledInDms, setName, updateForServer, updateForServer, updateGlobal
-
-
-
-
Method Detail
-
setSlashCommandOptions
public SlashCommandUpdater setSlashCommandOptions(java.util.List<SlashCommandOption> slashCommandOptions)
Sets the new slash command options.- Parameters:
slashCommandOptions- The slash command options to set.- Returns:
- The current instance in order to chain call methods.
-
-