From 73b9ff23f595e12945b72835ac180e7c3b7d89cd Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Sat, 27 Apr 2024 16:01:23 +1000 Subject: [PATCH] fix: Make behavior for unsuppressed autocomplete a warning rather than an early exit --- interactions/ext/hybrid_commands/hybrid_slash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interactions/ext/hybrid_commands/hybrid_slash.py b/interactions/ext/hybrid_commands/hybrid_slash.py index 8bab140fa..c3f73cad6 100644 --- a/interactions/ext/hybrid_commands/hybrid_slash.py +++ b/interactions/ext/hybrid_commands/hybrid_slash.py @@ -31,6 +31,7 @@ from interactions.client.utils.serializer import no_export_meta from interactions.client.utils.misc_utils import maybe_coroutine, get_object_name from interactions.client.errors import BadArgument +from interactions.client import get_logger from interactions.ext.prefixed_commands import PrefixedCommand, PrefixedContext from interactions.models.internal.converters import _LiteralConverter, CONSUME_REST_MARKER from interactions.models.internal.checks import guild_only @@ -355,7 +356,7 @@ def slash_to_prefixed(cmd: HybridSlashCommand) -> _HybridToPrefixedCommand: # n if option.autocomplete and not cmd._silence_autocomplete_errors: # there isn't much we can do here - raise ValueError("Autocomplete is unsupported in hybrid commands.") + get_logger().warning("Autocomplete is unsupported in hybrid commands.") name = option.argument_name or str(option.name) annotation = inspect.Parameter.empty