blackmesadev / black-mesa

Black Mesa is a Discord Moderation bot designed with Performance, Reliability and Customisation in mind.
https://blackmesa.bot
MIT License
20 stars 4 forks source link

Fix issue where purges do not have a filter to target a specific user. #9

Closed damaredayo closed 2 years ago

damaredayo commented 2 years ago

Added PURGE_USER to be separate from PURGE_USERS, both with the string "user" and "users" respectively. However for functionality, "user" is not needed if Black Mesa detects an ID in the message, it will automatically set the Purge Type to PURGE_USER.

Fix issue where purges do not have a filter to target a specific user, simple change, copied from the old PurgeUser, just changed the logic to iterate over the id list and add to the bulk delete slice based on that.