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
I am attempting to use discord.PermissionOverwrite to overwrite permissions for a channel. Upon setting the read_messages or send_messages kwargs or attributes it returns an error AttributeError: PermissionOverwrite' object attribute 'read_messages' is read-only`
Reproduction Steps
create a basic command
assign discord.PermissionOverwrite() to a var
attemp to set read_messages to True
run command and see traceback
Minimal Reproducible Code
@commands.command()asyncdeftest(self, ctx):
overwrite=discord.PermissionOverwrite()
overwrite.read_messages=True# this line causes erroroverwrite.set_messages=True# this line also raises error. I have not tried with any other perms# discord.PermissionOverwrite(read_messages=True) raises same error
Expected Results
No error should be returned and should be able to set kwargs in constructor or attributes
Actual Results
AttributeError: 'PermissionOverwrite' object attribute 'read_messages' is read-only is raised
Intents
default and reactions
System Information
Python v3.9.5-final
discord.py v1.7.3-final
aiohttp v3.7.4.post0
system info: Windows 10 10.0.19041
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
No response
The text was updated successfully, but these errors were encountered:
Summary
I am attempting to use discord.PermissionOverwrite to overwrite permissions for a channel. Upon setting the read_messages or send_messages kwargs or attributes it returns an error
AttributeError:
PermissionOverwrite' object attribute 'read_messages' is read-only`Reproduction Steps
Minimal Reproducible Code
Expected Results
No error should be returned and should be able to set kwargs in constructor or attributes
Actual Results
AttributeError: 'PermissionOverwrite' object attribute 'read_messages' is read-only
is raisedIntents
default and reactions
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: