You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
Checklist
Additional Context
workaround add "from .permissions import Permissions" to line 16 on threads.py
The text was updated successfully, but these errors were encountered: