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

Move Member::highest_role_info to Guild::member_highest_role #2816

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

GnomedDev
Copy link
Member

This means:

  • PartialGuild::greater_member_hierarchy isn't a duplicate of Guild::greater_member_hierarchy anymore
  • Guild::greater_member_hierarchy doesn't need the cache parameter, and this can be removed in a followup PR to next.
  • Guild::member_highest_role doesn't need cache and can return back a reference to the role, instead of id and position which then required another lookup.

@github-actions github-actions bot added the model Related to the `model` module. label Mar 25, 2024
@arqunis arqunis added the enhancement An improvement to Serenity. label Mar 25, 2024
@arqunis arqunis merged commit d29962d into serenity-rs:current Mar 25, 2024
22 checks passed
@GnomedDev GnomedDev deleted the better-role branch March 25, 2024 20:57
arqunis added a commit that referenced this pull request Mar 26, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request Mar 29, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request Mar 31, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Mar 31, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Apr 1, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request May 14, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request May 14, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request May 23, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request May 28, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Jun 9, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request Jun 22, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Jun 22, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 29, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 30, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request Aug 16, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Oct 7, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Oct 20, 2024
Followup to serenity-rs#2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
GnomedDev added a commit that referenced this pull request Oct 20, 2024
Followup to #2816

---------

Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to Serenity. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants