summaryrefslogtreecommitdiff
path: root/src/commands/general/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/general/version.rs')
-rw-r--r--src/commands/general/version.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/general/version.rs b/src/commands/general/version.rs
index 5f8eac9..bdf6805 100644
--- a/src/commands/general/version.rs
+++ b/src/commands/general/version.rs
@@ -1,12 +1,13 @@
-use crate::{consts::Colors, Context, Error};
+use crate::{client::Context, consts::Colors};
use std::env::consts::{ARCH, OS};
+use eyre::Result;
use poise::{serenity_prelude::CreateEmbed, CreateReply};
/// Get version info
#[poise::command(slash_command)]
-pub async fn version(ctx: Context<'_>) -> Result<(), Error> {
+pub async fn version(ctx: Context<'_>) -> Result<()> {
let sha = option_env!("GIT_SHA").unwrap_or("main");
let revision_url = format!(
"[{}]({}/tree/{})",