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

[V3 Mod] Denying add_reactions permission to muted users #1495

Merged
merged 3 commits into from
Apr 16, 2018

Conversation

laggron42
Copy link
Contributor

@laggron42 laggron42 commented Apr 3, 2018

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Since some of my members like spamming reactions when they get muted, I think that's a good idea to deny them the permission of adding reactions.

@@ -886,6 +886,7 @@ def __unload(self):

perms_cache[str(channel.id)] = overwrites.send_messages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's actually make this track both the original setting of the send_messages overwrite and the add_reactions overwrite so that we can just set it back to the old value on unmute

@palmtree5 palmtree5 merged commit 017c8a6 into Cog-Creators:V3/develop Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants