mirror of
https://github.com/supleed2/nanobot.git
synced 2024-12-22 06:05:50 +00:00
Fix whois id
to be ephemeral
This commit is contained in:
parent
c3f9ba6626
commit
980dcae811
|
@ -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))
|
||||
.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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue