From 119a86b0ac14e58828692abae42ff2e8f9dde219 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 18 Sep 2023 09:52:02 +0100 Subject: [PATCH] doc: better responses --- src/commands/link_email.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/link_email.rs b/src/commands/link_email.rs index 3051b37..2d96ce3 100644 --- a/src/commands/link_email.rs +++ b/src/commands/link_email.rs @@ -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 {