Skip to content

Commit

Permalink
Rename SlashCommandInteractionOptionsProvider methods that are only u…
Browse files Browse the repository at this point in the history
…sable if they get arguments from getOption* to getArgument* and changed the implementation to get the arguments instead
  • Loading branch information
felldo committed Oct 30, 2022
1 parent 68752f3 commit ba1a8dd
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 138 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
package org.javacord.api.interaction;

import java.util.List;

public interface SlashCommandInteraction extends ApplicationCommandInteraction, SlashCommandInteractionOptionsProvider {

/**
* Gets the arguments of this slash command if there are any.
*
* <p>This is a shorthand method to avoid checking for Subcommmands or SubcommandGroups
* to get the slash command arguments.
*
* @return The argument options.
*/
List<SlashCommandInteractionOption> getArguments();

/**
* Gets the full command name of this slash command including the name of the Subcommand and SubcommandGroup.
*
Expand Down
Loading

0 comments on commit ba1a8dd

Please sign in to comment.