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

[WIP] Move from notify blacklist to announcement mute role #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kantenkugel
Copy link
Collaborator

This PR is still WIP

Description

Removes the notify blacklist previously used and instead adds an announcment mute role.

This allows users to actually get notified about announcements but prevents them from spamming by revoking their WRITE permission.

This PR builds on the previously merged PR #29 , which added MiscUtil.announce(...)

Todo

Below is a list of actually known Todo entries. Since this is still a WIP, there might be some significant changes to how everything works tho and the Todo list will update correspondingly.

  • Create the mute role and fill in the ID in EntityLookup.
  • Think of other names for EntityLookup. When i wrote the initial commit, i couldn't come up with a better name.

This commit modifies MiscUtils.announce() to also revoke write permission
from a special announce mute role.

It also moves a lot of static hardcoded IDs for entities + some entity getters
to a common EntityLookup class (name subject to change).

TODO: Create Role and fill in ID in EntityLookup
@Almighty-Alpaca Almighty-Alpaca changed the title Move from notify blacklist to announcement mute role [WIP] Move from notify blacklist to announcement mute role Nov 5, 2018
@kantenkugel
Copy link
Collaborator Author

On hold until open questions are resolved and all other open PRs are merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant