modmail
modmail copied to clipboard
#101 Adds reason to blacklist
Summary
I updated the schemas.sql to add a blocked
table which logs blocked member IDs, the guild their blocked from and the reason they were blocked.
I then updated core.py to accept a reason argument as part of the blacklist
command. I updated the command to add in functionality of writing to the new blocked
table however I kept in the old functionality for now. and .
I then subsequently updated direct_message.py, modmail_channel.py, and tools.py to be able to read the blocked
table entries in any places it was already checking the blacklist entries of the data table.
Finally I updated core.py's whitelist
and blacklistclear
commands to remove one and all entries respectively.
Related issue(s) #101 Add a reason for blocking users
Additional context Add any other context or screenshots about the pull request here.
I hope I got all of the times blacklist
was used
Closing due to age.