diff --git a/src/commands/core.rs b/src/commands/core.rs index e5a46cb..4d0c7bc 100644 --- a/src/commands/core.rs +++ b/src/commands/core.rs @@ -51,8 +51,7 @@ async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to wa #[poise::command(slash_command, prefix_command)] async fn version(ctx: ManifoldContext<'_>) -> ManifoldResult<()> { - let git_info: String = built_info::GIT_VERSION.unwrap_or("unknown").to_string(); - let version_string: String = format!("Version {} built at {} revision {}", built_info::PKG_VERSION, built_info::BUILT_TIME_UTC, git_info); + let version_string = &ctx.data().version_string; ctx.send(|f| f .reply(true)