Skip to content
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

bug in threads.py #1123

Closed
3 tasks done
pubgrub2 opened this issue Oct 19, 2023 · 1 comment · Fixed by #1124
Closed
3 tasks done

bug in threads.py #1123

pubgrub2 opened this issue Oct 19, 2023 · 1 comment · Fixed by #1124
Labels
bug Something isn't working

Comments

@pubgrub2
Copy link

pubgrub2 commented Oct 19, 2023

Summary

threads.py doesnt import required class

Reproduction Steps

for x in guildMembers:
hasViewPermissions = ctx.channel.permissions_for(x).view_channel

Minimal Reproducible Code

No response

Expected Results

returns true/false as expected

Actual Results

File "C:\Users*****\AppData\Roaming\Python\Python39\site-packages\disnake\threads.py", line 483, in permissions_for
denied = Permissions.all_channel()
NameError: name 'Permissions' is not defined

Intents

intents = disnake.Intents.default() intents.message_content = True intents.members = True intents.guilds = True

System Information

- Python v3.9.0-final
- disnake v2.9.0-final
    - disnake importlib.metadata: v2.9.0
- aiohttp v3.8.6
- system info: Windows 10 10.0.19041 AMD64

Checklist

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

Additional Context

workaround add "from .permissions import Permissions" to line 16 on threads.py

@pubgrub2 pubgrub2 added the unconfirmed bug Something might not be working label Oct 19, 2023
@shiftinv shiftinv added bug Something isn't working and removed unconfirmed bug Something might not be working labels Oct 19, 2023
@shiftinv
Copy link
Member

Thanks for reporting this issue! This will be fixed in v2.9.1 over the next few days.

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

Successfully merging a pull request may close this issue.

2 participants