Switch to ephemeral defer for collect/spread to make responses properly ephemeral

This commit is contained in:
bluepython508
2024-12-09 20:58:59 +00:00
parent 25f4ed332a
commit 06f116976d

View File

@@ -99,7 +99,7 @@ async fn spread(
.guild_id() .guild_id()
.ok_or_eyre("This bot only works in servers")?; .ok_or_eyre("This bot only works in servers")?;
ctx.defer().await?; ctx.defer_ephemeral().await?;
let from = from let from = from
.to_channel(ctx) .to_channel(ctx)
@@ -134,7 +134,7 @@ async fn collect(
.guild_id() .guild_id()
.ok_or_eyre("This bot only works in servers")?; .ok_or_eyre("This bot only works in servers")?;
ctx.defer().await?; ctx.defer_ephemeral().await?;
let users = channel_children(&ctx, from) let users = channel_children(&ctx, from)
.await? .await?