Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Botranktir does not check channel permission for MANAGE_MESSAGES #26

Open
3ventic opened this issue Mar 6, 2021 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@3ventic
Copy link
Member

3ventic commented Mar 6, 2021

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 3ventic added the bug Something isn't working label Mar 6, 2021
@ShawnCZek
Copy link
Member

ShawnCZek commented Mar 6, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants