FRCDiscord / Dozer

Omnipotent guild management bot for FIRST Discord servers
GNU General Public License v3.0
40 stars 45 forks source link

Tried to ban, resulted in 2 log messages being sent. #474

Open silvanathecat opened 4 months ago

silvanathecat commented 4 months ago

This is a personal Dozer and is running the latest revision of this codebase (from this repo, not my fork). No log channel is configured. The bot has lower perms than the user it is attempting to ban, and therefore it doesn't work.

image

My theory is that it is trying to ban, doesn't realize it can't, then adds the user to the global ban database, realizes that user is in this server, and tries to ban them before throwing an exception.

After testing, this also works on the production version of the bot.

image