Only check commands with options
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
This commit is contained in:
parent
98a73d534f
commit
7291bc6181
1 changed files with 4 additions and 3 deletions
|
@ -122,6 +122,7 @@ class Client(commands.Bot):
|
|||
for command in cmds:
|
||||
log.debug("Checking %r", command)
|
||||
try:
|
||||
if hasattr(command, "options"):
|
||||
for option in command.options:
|
||||
if option.input_type is None:
|
||||
raise TypeError("Input type is None")
|
||||
|
|
Loading…
Reference in a new issue