diff --git a/naff/client/errors.py b/naff/client/errors.py index ca31bc584..467c5d743 100644 --- a/naff/client/errors.py +++ b/naff/client/errors.py @@ -106,7 +106,10 @@ def __init__( def __str__(self) -> str: if self.errors: - errors = self.search_for_message(self.errors) + try: + errors = self.search_for_message(self.errors) + except (KeyError, ValueError, TypeError): + errors = [self.text] out = f"HTTPException: {self.status}|{self.response.reason}: " + "\n".join(errors) else: out = f"HTTPException: {self.status}|{self.response.reason} || {self.text}" diff --git a/naff/models/naff/application_commands.py b/naff/models/naff/application_commands.py index 77ed1d735..1960b3c1d 100644 --- a/naff/models/naff/application_commands.py +++ b/naff/models/naff/application_commands.py @@ -1073,6 +1073,8 @@ def _compare_options(local_opt_list: dict, remote_opt_list: dict) -> bool: "choices": ("choices", []), "max_value": ("max_value", None), "min_value": ("min_value", None), + "max_length": ("max_length", None), + "min_length": ("max_length", None), } post_process: Dict[str, Callable] = { "choices": lambda l: [d | {"name_localizations": {}} if len(d) == 2 else d for d in l], diff --git a/pyproject.toml b/pyproject.toml index 05363b00d..f3300d564 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "naff" -version = "1.11.0" +version = "1.11.1" description = "Not another freaking fork" authors = [ "LordOfPolls ",