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 command to set timezone role prefix #17

Open
generic-github-user opened this issue Jan 17, 2019 · 0 comments
Open

Add command to set timezone role prefix #17

generic-github-user opened this issue Jan 17, 2019 · 0 comments
Labels
command feature permission: MANAGE_ROLES To use this command, the user who executes it must have the MANAGE_ROLES permission on the server.
Milestone

Comments

@generic-github-user
Copy link
Owner

generic-github-user commented Jan 17, 2019

A prefix is added to each role name before the timezone name to distinguish timezone roles from all other roles. This was added to prevent an issue where a role like FIRST! was converted to a timezone role (like IRST - 5:43 PM) whenever updateTimes() or updateAllTimes().

It would be nice if users could customize this prefix using a command, or even add a suffix. More complicated identifiers could potentially be added using regular expression checking.

An alternate option would be to keep a running list of role IDs for each server/guild, but this would be memory-expensive and outweigh the costs of having a short role prefix or suffix on each role.

@generic-github-user generic-github-user added the permission: MANAGE_ROLES To use this command, the user who executes it must have the MANAGE_ROLES permission on the server. label Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command feature permission: MANAGE_ROLES To use this command, the user who executes it must have the MANAGE_ROLES permission on the server.
Projects
None yet
Development

No branches or pull requests

1 participant