scarletcafe / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
543 stars 182 forks source link

Update sync command to work in discord.py 2.4 #235

Closed pythonmcpi closed 5 months ago

pythonmcpi commented 5 months ago

Rationale

discord.py 2.4 updates the get_translated_payload and to_dict method signatures for application commands, making the CommandTree a required parameter.

Summary of changes made

Support the new function signatures without breaking backwards compatibility with discord.py <= 2.3

Supersedes #230

Checklist

JDJGInc commented 5 months ago

as discord.py version 2.4 released recently this can be merged as confirmed.

JDJGInc commented 5 months ago

and if this gets merged

pr 230 can be closed too.