Skip to content

fix(audit-log): show role names next to mentions in member role updates - #511

Open
Mathieu133 wants to merge 1 commit into
Rustmail:mainfrom
Mathieu133:fix/audit-log-role-names
Open

Mathieu133 wants to merge 1 commit into
Rustmail:mainfrom
Mathieu133:fix/audit-log-role-names

Conversation

@Mathieu133

Copy link
Copy Markdown

In dual-server mode, the "Member Roles Updated" audit log is posted on the other
guild, where the role doesn't exist, so the mention renders as "@unknown-role".

This adds the role name next to the mention, e.g. <@&ID> (Role name),
using the name field already provided by serenity's AffectedRole.
Same format as the one already used in formatters/role.rs.

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 this pull request may close these issues.

1 participant