Closed Jian-Wuyou closed 3 years ago
Was able to invite the bot to a test server and execute admin commands by giving myself a role with the same name as server roles. Tested with !PRINT_ALL and !PRINT_DB, but presumably also works with !HARD_RESET.
Added decorator @commands.check
to admin commands to check if guild is in cnst.ALLOWED_GUILDS
Changes
main.isadmin
andmain.has_role
with the@commands.has_any_role
decorator.except Exception:
instead ofexcept:
)@commands.check
andcnst.ALLOWED_GUILDS