Skip to content

Commit 34ca880

Browse files
committed
fix: format newly created role mentions properly
1 parent 12c22c9 commit 34ca880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bot/commands/setuproles.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ async fn handle_save_roles(
482482
// Show success message
483483
let roles_list = created_roles
484484
.iter()
485-
.map(|(_, role_id)| format!("* <@{}>", role_id))
485+
// Manually format role mentions because it may not be cached yet
486+
.map(|(_, role_id)| format!("* <@&{}>", role_id))
486487
.collect::<Vec<_>>()
487488
.join("\n");
488489

0 commit comments

Comments
 (0)