-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixed: Bug #196 permissions reset when creating rfr #239
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jonathan <[email protected]>
Signed-off-by: Jonathan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
=======================================
Coverage 83.48% 83.48%
=======================================
Files 27 27
Lines 6671 6672 +1
=======================================
+ Hits 5569 5570 +1
Misses 1102 1102
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change changelog to show this is an update to the rfr cog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one change, and what Kieran has already mentioned
role: discord.Role = discord.utils.get(guild.roles, id=guild.id) | ||
overwrite: discord.PermissionOverwrite = discord.PermissionOverwrite() | ||
overwrite.update(add_reactions=False) | ||
await channel.set_permissions(role, overwrite=overwrite) | ||
perms = channel.overwrites_for(role) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All current roles should have the add_reactions
perm set to false, not just everyone. (although this successfully doesn't screw with other perms, as mentioned in issue, gj!)
Signed-off-by: Jonathan [email protected]
Summary
fixes bug where it would default permissions if a rfr is created close #196
Checklist
CHANGELOG.md
under the[Unreleased]
heading?documentation.json
?