Closed quachtridat closed 1 year ago
FWIW, in our empirical testing, we are able to load Defender with this PR's change on an instance of Red running at https://github.com/Cog-Creators/Red-DiscordBot/commit/f13d910f66dbb38cbf546666807f4eec660ae279 . We tested one of our Warden rules, and it seems to be working 😀
Thanks for your contribution. I'm closing this PR as the dpy2
branch is rather stale by now and it's missing major changes from master
. I have decided to resume work on a separate branch (dev-dpy2
) where I'm gradually porting over the work I did back then.
Since
discord.py
v2'sBot.add_cog()
is a coroutine, this commit makessetup
async and await the said coroutine. Without it, Red will complain like this:Reference: https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.add_cog