CaedenPH / Jarvide

jarvide is a mix of an AI and an IDE that can securely run, save, edit, read, create, rename files all with a couple clicks of buttons.
MIT License
23 stars 16 forks source link

Hierarchy check for permission related commands (e.x role cmd) #74

Closed Pandabweer closed 2 years ago

Pandabweer commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Try to give yourself the same, highest role as the bot.

Expected behavior A message saying the bots has not enough perms using the error handler of disnake.py

Additional context The user also would not be able to give him/herself a higher role than he/she currently has.

externref commented 2 years ago

https://github.com/CaedenPH/Jarvide/commit/a3f74bae1a04ee81b15f6c243c208b7c6d8d70b6 already implemented ;)

Pandabweer commented 2 years ago

My fault for leaving it too broad. Editing...

sifte commented 2 years ago

closing this since #70 fixes this issue