Only check commands with options
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s

This commit is contained in:
Nexus 2024-05-27 17:44:29 +01:00
parent 98a73d534f
commit 7291bc6181

View file

@ -122,6 +122,7 @@ class Client(commands.Bot):
for command in cmds: for command in cmds:
log.debug("Checking %r", command) log.debug("Checking %r", command)
try: try:
if hasattr(command, "options"):
for option in command.options: for option in command.options:
if option.input_type is None: if option.input_type is None:
raise TypeError("Input type is None") raise TypeError("Input type is None")