diff --git a/src/other/notice.rs b/src/other/notice.rs index 3b07c4c..7ddbc4d 100644 --- a/src/other/notice.rs +++ b/src/other/notice.rs @@ -138,9 +138,12 @@ async fn notice(http: Arc) -> anyhow::Result<()> { for bd in &birtdays { let user_id = UserId::new(bd.id); - guild_id.member(http.clone(), user_id).await?; + match guild_id.member(http.clone(), user_id).await { + Ok(_) => (), + Err(_) => continue + }; - celebrate_birthday(guild_id, user_id, bd.nick.as_str(), http.clone()).await?; + let _ = celebrate_birthday(guild_id, user_id, bd.nick.as_str(), http.clone()).await; } // TODO if has year delete it from announce and delete @@ -150,7 +153,7 @@ async fn notice(http: Arc) -> anyhow::Result<()> { continue; } - announce_event(guild_id, e.name.as_str(), e.special_message.as_str(), http.clone()).await?; + let _ = announce_event(guild_id, e.name.as_str(), e.special_message.as_str(), http.clone()).await; } }