Move avatar resolutions to config class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-20 19:00:27 +01:00
parent 913e8e023a
commit c44251ddb7
3 changed files with 16 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ package wtf.beatrice.hidekobot.commands.completer;
import net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent;
import net.dv8tion.jda.api.interactions.commands.Command;
import org.jetbrains.annotations.NotNull;
import wtf.beatrice.hidekobot.commands.slash.AvatarCommand;
import wtf.beatrice.hidekobot.Configuration;
import java.util.ArrayList;
import java.util.List;
@@ -18,7 +18,7 @@ public class AvatarCompleter
List<Command.Choice> options = new ArrayList<>();
for(int res : AvatarCommand.acceptedSizes)
for(int res : Configuration.getSupportedAvatarResolutions())
{
String resString = String.valueOf(res);
String userInput = event.getFocusedOption().getValue();