From cfb5d95be4487ffaa95af7db0b6f3dbe08b08395 Mon Sep 17 00:00:00 2001 From: Daragh Downes Date: Mon, 16 Sep 2024 19:15:45 +0100 Subject: [PATCH] fix: take out of else, should run regardless --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ea8d3b0..d5869de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,8 @@ impl EventHandler for Handler { if let Err(e) = new_member.add_roles(&ctx, &roles).await { println!("{:?}", e); } - } else if let Some(name) = new_member.guild_id.name(&ctx) { + } + if let Some(name) = new_member.guild_id.name(&ctx) { let msg = format!( "Welcome to the {} server! \n\ Sign up on ulwolves and go to #bot_commands and do /link_wolves to get full access",