SocksTheWolf / AntiScamBot

A discord bot that shares commission scammer ban lists
https://scamguard.app/
MIT License
5 stars 3 forks source link

Check bot role during bans with permission errors #31

Closed SocksTheWolf closed 7 months ago

SocksTheWolf commented 9 months ago

Currently, we have a standard error if we cannot execute the ban on a scammer due to permissions.

The problem with this standard error is that we don't know if we can't execute the ban because we lost ban permissions, or if the scammer in question is in the server with a role higher than ours.

The goal of this task is to see if we can detect if the issue is due to a role ranking difference without bringing in the server members nor the presence intents, as both intents are special and require extra permissions that I rather not add (see Discord's principles of least privilege).

Plus the fewer permissions we use, the better we are off.

SocksTheWolf commented 9 months ago

Going to assign this to me, as I currently have the means to increase intent privileges, which this issue hinges on.

SocksTheWolf commented 7 months ago

As an update, we currently know when we do not have the proper permissions to ban a user due to the error message that occurs. However the point of action that could be taken here is difficult to ascertain. As such, I’m going to close this task