huh
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
This commit is contained in:
parent
777fcef499
commit
e318330587
1 changed files with 2 additions and 1 deletions
|
@ -161,12 +161,13 @@ for module in CONFIG["jimmy"].get("modules", ["cogs/*.py"]):
|
|||
|
||||
for command in bot.walk_application_commands():
|
||||
try:
|
||||
assert command.input_type is not None, "Input type was None!"
|
||||
d = command.to_dict()
|
||||
except Exception as e:
|
||||
log.error("Failed to convert %r to dict", command, exc_info=e)
|
||||
bot.remove_application_command(command)
|
||||
else:
|
||||
log.debug("Loaded command %r: %r", command, d)
|
||||
log.info("Loaded command %r.", command)
|
||||
|
||||
|
||||
@bot.event
|
||||
|
|
Loading…
Reference in a new issue