Fix whois id to be ephemeral

This commit is contained in:
Aadi Desai 2023-09-27 12:07:51 +01:00
parent c3f9ba6626
commit 980dcae811
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM

View file

@ -712,7 +712,13 @@ pub(crate) async fn whois_by_id(ctx: ACtx<'_>, id: serenity::Member) -> Result<(
ctx.send(|c| c.content(format!("{id}: {}", m.nickname)).ephemeral(true)) ctx.send(|c| c.content(format!("{id}: {}", m.nickname)).ephemeral(true))
.await? .await?
} }
None => ctx.say(format!("No member entry found for {id}")).await?, None => {
ctx.send(|c| {
c.content(format!("No member entry found for {id}"))
.ephemeral(true)
})
.await?
}
}; };
Ok(()) Ok(())
} }