huh
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s

This commit is contained in:
Nexus 2024-05-27 17:17:59 +01:00
parent 777fcef499
commit e318330587

View file

@ -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