diff --git a/src/main.py b/src/main.py index baf56c2..7d72ddd 100644 --- a/src/main.py +++ b/src/main.py @@ -113,8 +113,13 @@ class Client(commands.Bot): self.uptime_thread = None async def on_connect(self): - log.debug("Walking the following application commands: %r", list(self.walk_application_commands())) - for command in self.walk_application_commands(): + if not any(self.walk_application_commands()): + log.warning("No application commands. using pending.") + cmds = self.pending_application_commands + else: + cmds = list(self.walk_application_commands()) + log.debug("Walking the following application commands: %r", cmds) + for command in cmds: log.debug("Checking %r", command) try: assert command.input_type is not None, "Input type was None!"