diff --git a/src/main.py b/src/main.py index 7d72ddd..55629c9 100644 --- a/src/main.py +++ b/src/main.py @@ -122,10 +122,12 @@ class Client(commands.Bot): for command in cmds: log.debug("Checking %r", command) try: - assert command.input_type is not None, "Input type was None!" + for option in command.options: + if option.input_type is None: + raise TypeError("Input type is None") _ = command.to_dict() except Exception as e: - log.error("Failed to convert %r to dict", command, exc_info=e) + log.error("Failed to validate %r", command, exc_info=e) self.remove_application_command(command) else: log.debug("Loaded command %r.", command)