[AB-81] adding support for choices in slash command parameters

This commit is contained in:
Sheldan
2023-01-12 01:34:30 +01:00
parent db27f64832
commit aa10c88588
2 changed files with 21 additions and 4 deletions

View File

@@ -37,6 +37,8 @@ public class Parameter implements Serializable {
// these are the features which potentially require this parameter
@Builder.Default
private List<String> dependentFeatures = new ArrayList<>();
@Builder.Default
private List<String> choices = new ArrayList<>();
public String getSlashCompatibleName() {
return name.toLowerCase(Locale.ROOT);