Closed Dav-Git closed 1 year ago
I used this to get some cogs working in both version at the same time. Maybe it helps
async def setup(bot: Red) -> None:
cog = Botstatus(bot)
if discord.version_info.major == 2:
await bot.add_cog(cog)
else:
bot.add_cog(cog)
cog.init()
This PR contains all changes required to make my cogs compatible with dpy 2.0 and Red 3.5