Skip to content

Commit

Permalink
Disable answered questions for better UX
Browse files Browse the repository at this point in the history
  • Loading branch information
jdh8 committed May 4, 2024
1 parent e8c8f44 commit 3f4ad69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fun/poem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit 3f4ad69

Please sign in to comment.