diff options
Diffstat (limited to 'src/commands/general/ask.rs')
| -rw-r--r-- | src/commands/general/ask.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/general/ask.rs b/src/commands/general/ask.rs index 75560e0..c715e3a 100644 --- a/src/commands/general/ask.rs +++ b/src/commands/general/ask.rs @@ -1,15 +1,16 @@ -use crate::{consts, utils, Context}; +use crate::{consts, utils, Context, Error}; -use eyre::{Context as _, Result}; +use eyre::Context as _; /// Ask teawie a question! #[poise::command(prefix_command, slash_command)] +#[allow(clippy::no_effect_underscore_binding)] pub async fn ask( ctx: Context<'_>, #[rename = "question"] #[description = "The question you want to ask teawie"] _question: String, -) -> Result<()> { +) -> Result<(), Error> { let resp = utils::random_choice(consts::RESPONSES) .wrap_err("Couldn't choose from random responses!")?; |
