Compare commits
3 Commits
fa68df0a94
...
cd50d26f30
| Author | SHA1 | Date |
|---|---|---|
|
|
cd50d26f30 | |
|
|
fee32c8e51 | |
|
|
e6efaf3a06 |
|
|
@ -163,6 +163,9 @@ async fn leaderboard(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
|
|||
return Ok(())
|
||||
}
|
||||
|
||||
// Release our mutex lock on this object before the paginate call to avoid holding a lock on it for the full paginate interaction listener timeout duration
|
||||
drop(userinfo);
|
||||
|
||||
manifold::helpers::paginate(ctx, reply_handle, pages, 0).await?;
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use manifold::error::{ManifoldError, ManifoldResult};
|
|||
use manifold::models::user::UserInfo;
|
||||
use manifold::schema::userinfo;
|
||||
use poise::FrameworkContext;
|
||||
use poise::serenity_prelude::{Context, Mention, Mentionable, Message, RoleId, UserId};
|
||||
use poise::serenity_prelude::{Context, Mentionable, Message, RoleId};
|
||||
use crate::badgey::models::quarantine_channel::QuarantineChannel;
|
||||
use crate::badgey::schema::xp as xp_table;
|
||||
use crate::badgey::schema::*;
|
||||
|
|
|
|||
Loading…
Reference in New Issue