summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-15 16:20:51 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commitcc35ac5be15a3b20fd02c2a5d4a499c41f9d6bc9 (patch)
tree72901e1563696cd4b10d6a69c2ef30ec1a1ed158
parentb520f45fd3ef855cb0b3ff23603fd5d30aa27296 (diff)
commands: fix question param in ask
-rw-r--r--src/commands/general/ask.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/general/ask.rs b/src/commands/general/ask.rs
index ba18bdd..7775fb7 100644
--- a/src/commands/general/ask.rs
+++ b/src/commands/general/ask.rs
@@ -6,7 +6,9 @@ use color_eyre::eyre::{Context as _, Result};
#[poise::command(prefix_command, slash_command)]
pub async fn ask(
ctx: Context<'_>,
- #[description = "The question you want to ask teawie"] _question: String,
+ #[rename = "question"]
+ #[description = "The question you want to ask teawie"]
+ _question: String,
) -> Result<()> {
let resp = utils::random_choice(consts::RESPONSES)
.wrap_err("Couldn't choose from random responses!")?;