mirror of
https://github.com/supleed2/nanobot.git
synced 2024-11-09 12:19:31 +00:00
Fix refresh_non_members
command
Add `defer` to prevent timeout
This commit is contained in:
parent
63c453d370
commit
6684bd1832
|
@ -94,6 +94,7 @@ pub(crate) async fn edit_member_fresher(
|
|||
pub(crate) async fn refresh_non_members(ctx: ACtx<'_>) -> Result<(), Error> {
|
||||
use serenity::futures::StreamExt;
|
||||
tracing::info!("{}", ctx.author().name);
|
||||
ctx.defer().await?;
|
||||
let mut members = ctx.data().server.members_iter(ctx.http()).boxed();
|
||||
let mut cnt = 0;
|
||||
while let Some(Ok(mut m)) = members.next().await {
|
||||
|
|
Loading…
Reference in a new issue