Defer on spread, in case of issues with larger groups
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user