Closed TheSnoozer closed 6 years ago
This looks like an issue with pylint not acknowledging settable properties, and as such probably has a better home being reported to its developers with this context.
As a workaround, use the kwargs instead:
overwrite = discord.PermissionOverwrite(send_messages=False, read_messages=True)
await channel.set_permissions(member, overwrite=overwrite)
Thanks for the input. Workaround does the trick for me.
Branch: rewrite Based on the examples in https://discordpy.readthedocs.io/en/rewrite/api.html#discord.PermissionOverwrite
Running
python3.5 -m pylint *.py --disable=R,C,W
causes: