doc: better responses
This commit is contained in:
parent
3bf085204e
commit
119a86b0ac
1 changed files with 5 additions and 3 deletions
|
@ -51,14 +51,16 @@ pub(crate) mod link {
|
||||||
.expect("Expected email object");
|
.expect("Expected email object");
|
||||||
|
|
||||||
let email = if let CommandDataOptionValue::String(email) = option {
|
let email = if let CommandDataOptionValue::String(email) = option {
|
||||||
email
|
email.trim()
|
||||||
} else {
|
} else {
|
||||||
return "Please provide a valid user".to_string();
|
return "Please provide a valid user".to_string();
|
||||||
};
|
};
|
||||||
|
|
||||||
// check if email exists
|
// check if email exists
|
||||||
let details = match get_server_member_email(&db, email).await {
|
let details = match get_server_member_email(&db, email).await {
|
||||||
None => return "Please check is the same as on https://ulwolves.ie/".to_string(),
|
None => {
|
||||||
|
return "Please check it is your preferred contact on https://ulwolves.ie/memberships/profile and that you are fully paid up.".to_string()
|
||||||
|
}
|
||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -80,7 +82,7 @@ pub(crate) mod link {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
format!("Verification email sent to {}, it may take up to 15 min for it to arrive.", email)
|
format!("Verification email sent to {}, it may take up to 15 min for it to arrive. If it takes longer check the Junk folder.", email)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
||||||
|
|
Loading…
Reference in a new issue