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

Allow to provide a set of Team Roles, to be added to the owner array #265

Closed
C0D3-M4513R opened this issue May 9, 2024 · 2 comments · Fixed by #278
Closed

Allow to provide a set of Team Roles, to be added to the owner array #265

C0D3-M4513R opened this issue May 9, 2024 · 2 comments · Fixed by #278

Comments

@C0D3-M4513R
Copy link

C0D3-M4513R commented May 9, 2024

Depends on serenity-rs/serenity#2859
Ref.:

It would be nice, if I could just specify a set/list of Team Roles.
Every member of the owning Team, with one of those roles would get added to the internal owner list.

Also it would be nice, if there was an option to only consider accepted Team Members for the default initialization.

e.g. Http::get_current_application_info() -> If a Team, get Team Members -> Filter to only Accepted Team Members -> Filter to only Admins/Developers.

@C0D3-M4513R
Copy link
Author

I don't see a way to filter to only Accepted Team Members with #278 ?

@GnomedDev
Copy link
Member

See https://discord.com/developers/docs/topics/teams#team-member-roles, add the users who you want to be treated as "owners" to the bot's team on the developer portal, set the permission level you want them to have, and set that permission level in FrameworkOptions::initialized_team_roles.

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 a pull request may close this issue.

2 participants