add IdentifierProvider and wrapper implementations
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 33s
Test / Gradle-Test (push) Successful in 48s

This commit is contained in:
2025-03-05 21:44:12 +01:00
parent f940f48566
commit 432cf78a2e
14 changed files with 305 additions and 136 deletions

View File

@@ -37,9 +37,8 @@ public class SlashCommandParser implements AnnotationParser {
.name(cmd.name())
.description(cmd.description())
.options(cmd.options())
.autocomplete(isAutoComplete)
.serverIds(cmd.serverIds())
.build();
.build(isAutoComplete);
if (ReflectionUtil.isAnnotationPresent(method, SubCommandGroup.class)) {
SubCommandGroup cmdGroup = ReflectionUtil.getAnnotation(method, SubCommandGroup.class);
@@ -57,8 +56,7 @@ public class SlashCommandParser implements AnnotationParser {
.name(subCmd.name())
.description(subCmd.description())
.options(subCmd.options())
.autocomplete(isAutoComplete)
.build();
.build(isAutoComplete);
}
logger.trace("Parsed using SlashCommandParser for method {} with the result:\n{}", ReflectionUtil.getFullMethodName(method), lastIdentifier.toString());