From 3f4ad693c38d3681882d783d08dd42122b4fd328 Mon Sep 17 00:00:00 2001 From: Chen-Pang He Date: Sun, 5 May 2024 06:30:52 +0800 Subject: [PATCH] Disable answered questions for better UX --- src/fun/poem.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fun/poem.rs b/src/fun/poem.rs index 2a32328..919a5f3 100644 --- a/src/fun/poem.rs +++ b/src/fun/poem.rs @@ -306,15 +306,13 @@ async fn game(ctx: Context<'_>, word: &str, answer: Doki, buttons: &[(EmojiId, D else { Secondary } }; let edit = question.edit(ctx, poise::CreateReply { - //content, - components: Some(vec![make_buttons(buttons, style, false)]), + components: Some(vec![make_buttons(buttons, style, true)]), ..Default::default() }); try_join!(response, edit)?; }, None => { question.edit(ctx, poise::CreateReply { - //content, components: Some(vec![make_buttons(buttons, |_| Secondary, true)]), ..Default::default() }).await?;