botranktir icon indicating copy to clipboard operation
botranktir copied to clipboard

Botranktir does not check channel permission for MANAGE_MESSAGES

Open 3ventic opened this issue 3 years ago • 1 comments

Describe the bug

The bot does not allow use of delrole on channels with MANAGE_MESSAGES granted to it, if it is not allowed to MANAGE_MESSAGES for the whole guild.

To Reproduce

Steps to reproduce the behavior:

  1. Add the bot to a guild
  2. Disable manage messages on the role on the guild
  3. Enable manage messages on the role on a channel
  4. addrole on a message in that channel
  5. Attempt to delrole the added role from the previous step
  6. See error about permissions

Expected behavior

delrole should run and succeed.

Logs

N/A hosted instance.

About

Run the command {prefix}about and attach the screenshot of the output.

Additional context

3ventic avatar Mar 06 '21 00:03 3ventic

This is an issue of more commands than only the {prefix}delrole one. The whole solution of permissions needs to be redone to fix it as currently, the Commando's client permissions at commands are used.

ShawnCZek avatar Mar 06 '21 10:03 ShawnCZek