Discord made a breaking change to how the API handles fetching bans. Now, a similar system to ctx.history is used, and dpy returns an async iterable rather than a list. This PR updates the BanChart cog to handle this change. In addition, the trigger_typing change from #152 is copied here to avoid breaking that PR (and because that change is also needed for this cog to work).
Discord made a breaking change to how the API handles fetching bans. Now, a similar system to
ctx.history
is used, and dpy returns an async iterable rather than a list. This PR updates the BanChart cog to handle this change. In addition, thetrigger_typing
change from #152 is copied here to avoid breaking that PR (and because that change is also needed for this cog to work).