python-discord / bot

The community bot for the Python Discord community
https://pythondiscord.com
MIT License
1.31k stars 652 forks source link

Use the new bulk ban feature #3101

Closed shtlrs closed 2 weeks ago

shtlrs commented 3 weeks ago

Dpy has just released1 new guild.bulk_ban feature, i think this can be used in multiple places to replace usage of internal eval to iterate over users and ban one by one.

There are other places that further need to be identified like compban, since it allows you also to delete message history from the past n seconds.

wookie184 commented 3 weeks ago

Changed the status to planning as it's not clear to me what needs to be done here. AFAIK there's nowhere in the bot where we ban in a loop, so there's nowhere obvious to replace.

For manual bans using int eval we could use it, but I'm not sure it'd be worth it for a few reasons:

shtlrs commented 2 weeks ago

Ok, i'll close this then.