From 2a746c11888be19929a88502e6e5c4d0cc3d71c4 Mon Sep 17 00:00:00 2001 From: Stachelbeere1248 Date: Sat, 16 Nov 2024 00:48:24 +0100 Subject: [PATCH] user app test --- src/commands/accountv2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/accountv2.rs b/src/commands/accountv2.rs index 353b98d..c41956e 100644 --- a/src/commands/accountv2.rs +++ b/src/commands/accountv2.rs @@ -253,11 +253,11 @@ pub(crate) async fn list(ctx: Context<'_>, user: Option) -> Result<(), Err } #[poise::command(context_menu_command="Account list")] -pub(crate) async fn context_list(ctx: Context<'_>, m: Message) -> Result<(), Error> { +pub(crate) async fn context_list(ctx: Context<'_>, u: User) -> Result<(), Error> { ctx.defer_ephemeral().await?; cooldown(&ctx, 600, 300)?; let pool: &Pool = &ctx.data().sqlite_pool; - let s: String = list_string(pool, &m.author).await?; + let s: String = list_string(pool, &u).await?; ctx.send( CreateReply::default() .content(s)