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

Add customizable roles #41

Open
Yousef-Bulbulia opened this issue Apr 24, 2021 · 2 comments
Open

Add customizable roles #41

Yousef-Bulbulia opened this issue Apr 24, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Yousef-Bulbulia
Copy link
Member

What problem are you facing?

Right now, the role names "admin" and "moderator" are hardcoded as the privileged roles of the bot. But other discord servers may have different names for the admin role and moderator role.

What can we do to fix that problem?

Allow the owner of the server to set which roles will be the admin and moderator roles. Admins should be able to remove or change the moderator role.

@Yousef-Bulbulia Yousef-Bulbulia added the enhancement New feature or request label Apr 24, 2021
@Yousef-Bulbulia Yousef-Bulbulia changed the title Add customizable permissions Add customizable roles Apr 24, 2021
@jcserv
Copy link
Contributor

jcserv commented Apr 29, 2021

Some considerations I thought of:

  1. Should we enable different permissions for different roles? If so, what permissions should be divided into levels?
  2. What would the syntax be? !anon set role 1 @admin ? (1 would be some type of permission level perhaps)

@Yousef-Bulbulia
Copy link
Member Author

Yousef-Bulbulia commented Apr 30, 2021

  1. I was thinking, maybe we could have 6 different levels:
    6: Set role permissions for the bot
    5: Set channels
    4: Permbans
    3: Add slurs
    2: Enable slowmode
    1: Tempbans, warns

    So, if a role is assigned to a level, then users with that role would have the permissions of that level, along with all of the levels below it.

  2. I think that's a good syntax

Also, when the bot is added to a server, the owner should automatically have level 6 permissions, and from there they can set what roles get what permission levels.

One thing to consider is how this change would affect servers that already use the bot. Maybe for servers where the bot is already in use, we could just assign the owner level 6 permissions and everyone else would be left with no permissions. Then the owner could just assign roles to levels.

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

No branches or pull requests

2 participants