diff --git a/src/main/java/dev/qixils/quasicord/decorators/ParserSlashCommand.java b/src/main/java/dev/qixils/quasicord/decorators/ParserSlashCommand.java index 2d95b91..0dff887 100644 --- a/src/main/java/dev/qixils/quasicord/decorators/ParserSlashCommand.java +++ b/src/main/java/dev/qixils/quasicord/decorators/ParserSlashCommand.java @@ -272,7 +272,7 @@ private net.dv8tion.jda.api.interactions.commands.Command.Choice[] createChoices net.dv8tion.jda.api.interactions.commands.Command.Choice[] jdaChoices = new net.dv8tion.jda.api.interactions.commands.Command.Choice[choices.length]; for (int i = 0; i < choices.length; i++) { Choice choice = choices[i]; - String id = rootKey + choice.id() + ".name"; + String id = rootKey + choice.value() + ".name"; SingleTranslation name = i18n.getSingle(id, i18n.getDefaultLocale()); if (name instanceof UnknownTranslation) throw new IllegalStateException("Missing translation for choice " + id); diff --git a/src/main/java/dev/qixils/quasicord/decorators/option/Choice.java b/src/main/java/dev/qixils/quasicord/decorators/option/Choice.java index e425323..0cd45b2 100644 --- a/src/main/java/dev/qixils/quasicord/decorators/option/Choice.java +++ b/src/main/java/dev/qixils/quasicord/decorators/option/Choice.java @@ -17,7 +17,7 @@ * While three different types of value methods are available for you to use, only the one matching the * {@link Option#type() type} specified in your {@link Option @Option} annotation will be utilized. *

- * The name of this choice is taken from the translation file(s) using the {@link #id() provided ID}. + * The name of this choice is taken from the translation file(s) using the {@link #value() provided ID}. */ @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) @@ -35,7 +35,7 @@ * * @return choice ID */ - String id(); + String value(); /** * The value of an {@link net.dv8tion.jda.api.interactions.commands.OptionType#INTEGER INTEGER} choice.