phenom4n4n / phen-cogs

My public cogs for Red, Discord bot.
https://phen-cogs.readthedocs.io/en/latest/
MIT License
120 stars 71 forks source link

[BanChart] Handle .bans breakage #164

Closed Flame442 closed 1 year ago

Flame442 commented 1 year ago

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).