dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
680 stars 161 forks source link

Not able to use slash_commands(application=app) anymore #375

Closed captain-majid closed 1 year ago

captain-majid commented 2 years ago

Summary

When I try to pass: slash_commands(application=app) the full list (above 25) of commands appears with some bots, but not with others, that was on an old commit, but now nothing at all is shown.

Reproduction Steps

1- Query a slash cmd to get its application/bot object. 2- Pass this object to a new slash cmd loop

app = None
async for cmd in ch_chosen.slash_commands(query='help'):
  app = cmd.application
async for cmd in ch_chosen.slash_commands(application=app):
  await cmd()

Code

Already provided.

Expected Results

To loop throughout slash_commands(application=app)

Actual Results

The loop isn't hit at all, unlike what happened b4.

System Information

Checklist

Additional Information

I'm on the latest commit of the master branch, dated 07-Sep-2022: https://github.com/dolfies/discord.py-self/commit/3f336351c865ee3936a4536bd5ad2373bb666b74