Change message structure on promotion to avoid pinging the whole rank role
Badgey Deployment / build (push) Successful in 6m16s Details
Badgey Deployment / deploy (BADGEY) (push) Failing after 7s Details
Badgey Deployment / deploy (M5_COMPUTER) (push) Failing after 6s Details

This commit is contained in:
Xyon 2024-10-09 14:13:28 +01:00
parent 6178bad417
commit f45157375b
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ impl BadgeyHandler {
member.remove_role(ctx, old_role_id).await?;
member.add_role(ctx, new_role).await?;
msg.channel_id.say(ctx, format!("{} is now a {}", msg.author.mention(), new_role.mention())).await?;
msg.channel_id.say(ctx, format!("{} is now a <@&{}>", msg.author.mention(), new_role)).await?;
}
} else {
error!("Needed to add level to user, but couldn't get the member from the guild!");