pycord icon indicating copy to clipboard operation
pycord copied to clipboard

permissions.moderate_members always returns False

Open Luckolite opened this issue 4 years ago • 2 comments

Summary

Whenever you try to access a permissions .moderate_members attribute it always returns False

Reproduction Steps

Give the bot moderate member permissions, or even administrator, and the following methods always return False: @commands.has_permissions(moderate_members=True) member.guild_permissions.moderate_members guild.me.guild_permissions.moderate_members

Minimal Reproducible Code

In reproduction steps

Expected Results

It returns True

Actual Results

It always returns False even when the bot has administrator

Intents

all

System Information

  • Python v3.8.10-final
  • py-cord v2.0.0-alpha
    • py-cord pkg_resources: v2.0.0a4580+g1d65214e
  • aiohttp v3.6.3
  • system info: Linux 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021

Checklist

  • [X] I have searched the open issues for duplicates.
  • [X] I have shown the entire traceback, if possible.
  • [X] I have removed my token from display, if visible.

Additional Context

No response

Luckolite avatar Dec 20 '21 23:12 Luckolite

  1. I enabled community in my server,
  2. I confirmed that I can manually time out users. (I am server owner, got admin and everything)
  3. I ran member.guild_permissions.moderate_members on myself and my bots.

it returned false. Seems to be a valid issue.

ghost avatar Dec 21 '21 00:12 ghost

Can not reproduce.

testing the permission

Dorukyum avatar Dec 21 '21 13:12 Dorukyum