Defer on spread, in case of issues with larger groups

This commit is contained in:
bluepython508
2024-12-09 19:54:51 +00:00
parent 78fa121404
commit 25f4ed332a

View File

@@ -99,6 +99,8 @@ 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?;
let from = from let from = from
.to_channel(ctx) .to_channel(ctx)
.await? .await?
@@ -132,6 +134,8 @@ 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?;
let users = channel_children(&ctx, from) let users = channel_children(&ctx, from)
.await? .await?
.into_iter() .into_iter()