check pending instead
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
bbcbbd12e0
commit
0da4ec5d63
1 changed files with 7 additions and 2 deletions
|
@ -113,8 +113,13 @@ class Client(commands.Bot):
|
||||||
self.uptime_thread = None
|
self.uptime_thread = None
|
||||||
|
|
||||||
async def on_connect(self):
|
async def on_connect(self):
|
||||||
log.debug("Walking the following application commands: %r", list(self.walk_application_commands()))
|
if not any(self.walk_application_commands()):
|
||||||
for command in 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)
|
log.debug("Checking %r", command)
|
||||||
try:
|
try:
|
||||||
assert command.input_type is not None, "Input type was None!"
|
assert command.input_type is not None, "Input type was None!"
|
||||||
|
|
Loading…
Reference in a new issue