Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaktushose committed Nov 29, 2024
1 parent c520ea2 commit fce1488
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public Set<InteractionControllerDefinition> getInteractionControllers() {
}

/**
* Gets a possibly-empty list of all {@link GenericCommandDefinition CommandDefinitions}.
* Gets a possibly-empty list of all {@link GenericCommandDefinition CommandDefinitions}, this includes both
* {@link SlashCommandDefinition} and {@link ContextCommandDefinition}.
*
* @return a possibly-empty list of all {@link GenericCommandDefinition CommandDefinitions}
*/
Expand All @@ -138,9 +139,9 @@ public Set<GenericCommandDefinition> getCommands() {
}

/**
* Gets a possibly-empty list of all {@link SlashCommandDefinition CommandDefinitions}.
* Gets a possibly-empty list of all {@link SlashCommandDefinition SlashCommandDefinitions}.
*
* @return a possibly-empty list of all {@link SlashCommandDefinition CommandDefinitions}
* @return a possibly-empty list of all {@link SlashCommandDefinition SlashCommandDefinitions}
*/
public Set<SlashCommandDefinition> getSlashCommands() {
return commands.stream().filter(it -> (it.getCommandType() == Command.Type.SLASH))
Expand All @@ -149,9 +150,9 @@ public Set<SlashCommandDefinition> getSlashCommands() {
}

/**
* Gets a possibly-empty list of all {@link ContextCommandDefinition CommandDefinitions}.
* Gets a possibly-empty list of all {@link ContextCommandDefinition ContextCommandDefinitions}.
*
* @return a possibly-empty list of all {@link ContextCommandDefinition CommandDefinitions}
* @return a possibly-empty list of all {@link ContextCommandDefinition ContextCommandDefinitions}
*/
public Set<ContextCommandDefinition> getContextCommands() {
return commands.stream().filter(it ->
Expand Down

0 comments on commit fce1488

Please sign in to comment.