feat: add warn
This commit is contained in:
parent
0d0d744e33
commit
dcedac1128
@ -119,16 +119,22 @@ pub async fn period(
|
||||
.color(colour::Color::RED)
|
||||
} else {
|
||||
let concour = concour.unwrap();
|
||||
CreateEmbed::new()
|
||||
let mut output = CreateEmbed::new()
|
||||
.title(concour.title)
|
||||
.description(concour.description)
|
||||
.field("Start date", concour.start_date.to_string(), false)
|
||||
.field("Periode", concour.periode.to_string(), false)
|
||||
.field(
|
||||
.field("Periode", concour.periode.to_string(), false);
|
||||
|
||||
if concour.role_recompense == 0 {
|
||||
output = output.field("Role récompense", "Aucun", false);
|
||||
} else {
|
||||
output = output.field(
|
||||
"Role récompense",
|
||||
RoleId::new(concour.role_recompense).mention().to_string(),
|
||||
false,
|
||||
)
|
||||
);
|
||||
}
|
||||
output
|
||||
}
|
||||
}
|
||||
Err(err) => match err {
|
||||
|
Loading…
Reference in New Issue
Block a user