Implement Permissions #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We need a proper permission system, currently we've implemented these:
SendMessage
CreateChannel
DeleteChannel
ManageChannel
CreateRole
DeleteRole
ManageRole
CreateInvite
ManageInvite
ManageServer
ManageMember
I think the permissions such as CreateRole and DeleteRole shouldn't exist, as letting users create stuff without being able to clean up after themselves.
Due to technical reasons, I think it's a really good idea to limit the system to 64 permissions, so they can be stored in a single integer.
I also think we should add a CreateCustomInvite permission, which would allow users to write a custom string for the invite link, since "normal" users shouldn't be able to "call dibs" on cool invite strings for the instance.
In the future, we also need ManageMessage, to pin and delete messages. Change and Manage Nickname. Kick, Ban, and Timeout Member. AttatchFile. AddReaction. UseCommand.
But my current desired permission list would be as follows:
SendMessage
ManageChannel
ManageRole
CreateInvite
CreateCustomInvite
ManageInvite
ManageServer
ManageMember
But please reply with any thoughts or opinions!