We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pycord gives invalid permissions
@bot.slash_command() async def test(ctx, channel: discord.Option(discord.TextChannel)): print( "Test result: ", channel.permissions_for(ctx.me) == ctx.guild.get_channel(channel.id).permissions_for(ctx.me), )
Test result: True
Test result: False (permissions got from channel argument are not valid)
channel
none
This was discussed in #help-1 https://discord.com/channels/881207955029110855/881309496385884180/966397457187606558
The text was updated successfully, but these errors were encountered:
Without intents, the permissions in the cached channel would not be up-to-date, causing such an issue
Sorry, something went wrong.
I can reproduce the issue myself with Intents.all().
The way app command arguments are parsed may be relevant, including the data sent by discord
Interaction
Option
Successfully merging a pull request may close this issue.
Summary
Pycord gives invalid permissions
Reproduction Steps
Minimal Reproducible Code
Expected Results
Test result: True
Actual Results
Test result: False
(permissions got from
channel
argument are not valid)Intents
none
System Information
Checklist
Additional Context
This was discussed in #help-1
https://discord.com/channels/881207955029110855/881309496385884180/966397457187606558
The text was updated successfully, but these errors were encountered: