Change message structure on promotion to avoid pinging the whole rank role
This commit is contained in:
parent
6178bad417
commit
f45157375b
|
|
@ -84,7 +84,7 @@ impl BadgeyHandler {
|
||||||
member.remove_role(ctx, old_role_id).await?;
|
member.remove_role(ctx, old_role_id).await?;
|
||||||
member.add_role(ctx, new_role).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 {
|
} else {
|
||||||
error!("Needed to add level to user, but couldn't get the member from the guild!");
|
error!("Needed to add level to user, but couldn't get the member from the guild!");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue