-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
permissions_for
returning wrong permissions
#2281
Comments
@Pycord-Development/contributors please work on this :) |
Heyhey, after some consideration this will be held off until 2.6 as it's rather intricate. Instead of |
Do you know if there's an alternative to interaction.app_permissions that does not require coming from a slash command event? I use permissions_for a lot so this is keeping me in 2.4 |
This issue only affects interactions; you can safely use permissions_for elsewhere |
(To elaborate, the issue is specifically because we update permissions from interaction.channel incorrectly; you could circumvent this again by using bot.get_channel, assuming you haven't disabled cache) |
Summary
permissions_for
returning wrong permissionsReproduction Steps
When you use
channel.permissions_for
, and you remove the "View Channel" permission, it still returns true.NOTE:
Minimal Reproducible Code
Expected Results
🚫if "View Channel" permission is denied. Else ✅
Actual Results
With py-cord-dev-2.5.0rc5: Always ✅
With py-cord 2.4.1: 🚫 or ✅, depending on the actual permission set
Intents
default
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: