diff --git a/commands/utils.py b/commands/utils.py index 9a7dc25..01308d7 100644 --- a/commands/utils.py +++ b/commands/utils.py @@ -25,6 +25,14 @@ def match_token(token: str) -> list[Command]: if token.lower() == "r": return [Command.RELOAD] + if exact_match := list( + filter( + lambda command: command.value == token.lower(), + Command.__members__.values(), + ) + ): + return exact_match + return list( filter( lambda command: command.value.startswith(token.lower()),