From 7291bc6181e80328ab700c0186ef983d0c6fece9 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 27 May 2024 17:44:29 +0100 Subject: [PATCH] Only check commands with options --- src/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index 55629c9..5160126 100644 --- a/src/main.py +++ b/src/main.py @@ -122,9 +122,10 @@ class Client(commands.Bot): for command in cmds: log.debug("Checking %r", command) try: - for option in command.options: - if option.input_type is None: - raise TypeError("Input type is None") + if hasattr(command, "options"): + 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 validate %r", command, exc_info=e)