doc: better responses

This commit is contained in:
silver 2023-09-18 09:52:02 +01:00
parent 3bf085204e
commit 119a86b0ac

View file

@ -51,14 +51,16 @@ pub(crate) mod link {
.expect("Expected email object");
let email = if let CommandDataOptionValue::String(email) = option {
email
email.trim()
} else {
return "Please provide a valid user".to_string();
};
// check if email exists
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,
};
@ -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 {