From 25f4ed332a08da97227bf3f84f1bb2ec7a8c2883 Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:54:51 +0000 Subject: [PATCH] Defer on spread, in case of issues with larger groups --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2b4a584..4cf2449 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,6 +99,8 @@ async fn spread( .guild_id() .ok_or_eyre("This bot only works in servers")?; + ctx.defer().await?; + let from = from .to_channel(ctx) .await? @@ -132,6 +134,8 @@ async fn collect( .guild_id() .ok_or_eyre("This bot only works in servers")?; + ctx.defer().await?; + let users = channel_children(&ctx, from) .await? .into_iter()