Uses of Interface
org.javacord.api.interaction.SlashCommand
-
Packages that use SlashCommand Package Description org.javacord.api org.javacord.api.entity.server org.javacord.api.interaction org.javacord.api.interaction.internal -
-
Uses of SlashCommand in org.javacord.api
Methods in org.javacord.api that return types with arguments of type SlashCommand Modifier and Type Method Description CompletableFuture<List<SlashCommand>>DiscordApi. bulkOverwriteGlobalSlashCommands(List<SlashCommandBuilder> slashCommandBuilderList)Bulk overwrites the global slash commands.CompletableFuture<List<SlashCommand>>DiscordApi. bulkOverwriteServerSlashCommands(Server server, List<SlashCommandBuilder> slashCommandBuilderList)Bulk overwrites the servers slash commands.CompletableFuture<SlashCommand>DiscordApi. getGlobalSlashCommandById(long commandId)Gets an slash command by its id.CompletableFuture<List<SlashCommand>>DiscordApi. getGlobalSlashCommands()Gets a list with all global commands for the application.CompletableFuture<SlashCommand>DiscordApi. getServerSlashCommandById(Server server, long commandId)Gets a server slash command by its id.CompletableFuture<List<SlashCommand>>DiscordApi. getServerSlashCommands(Server server)Gets a list with all slash commands for the given server. -
Uses of SlashCommand in org.javacord.api.entity.server
Methods in org.javacord.api.entity.server that return types with arguments of type SlashCommand Modifier and Type Method Description CompletableFuture<SlashCommand>Server. getSlashCommandById(long commandId)Gets a server slash command by its id.CompletableFuture<List<SlashCommand>>Server. getSlashCommands()Gets a list with all slash commands for the given server. -
Uses of SlashCommand in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return types with arguments of type SlashCommand Modifier and Type Method Description CompletableFuture<SlashCommand>SlashCommandBuilder. createForServer(Server server)Creates an slash command for a specific server.CompletableFuture<SlashCommand>SlashCommandBuilder. createGlobal(DiscordApi api)Creates a global slash command.CompletableFuture<SlashCommand>SlashCommandUpdater. updateForServer(Server server)Updates an slash command on the given server.CompletableFuture<SlashCommand>SlashCommandUpdater. updateGlobal(DiscordApi api)Updates a global slash command.Methods in org.javacord.api.interaction with parameters of type SlashCommand Modifier and Type Method Description static SlashCommandBuilderSlashCommand. createPrefilledSlashCommandBuilder(SlashCommand slashCommand)Create a new prefilled slash command builder from the given slash command. -
Uses of SlashCommand in org.javacord.api.interaction.internal
Methods in org.javacord.api.interaction.internal that return types with arguments of type SlashCommand Modifier and Type Method Description CompletableFuture<SlashCommand>SlashCommandBuilderDelegate. createForServer(Server server)Creates an slash command for a specific server.CompletableFuture<SlashCommand>SlashCommandBuilderDelegate. createGlobal(DiscordApi api)Creates a global slash command.CompletableFuture<SlashCommand>SlashCommandUpdaterDelegate. updateForServer(Server server)Performs the queued update.CompletableFuture<SlashCommand>SlashCommandUpdaterDelegate. updateGlobal(DiscordApi api)Performs the queued update.
-