From f0ef9ac7552c7e3fb2f2bbf17b7ab3ba6b0b9f59 Mon Sep 17 00:00:00 2001 From: Xyon Date: Sun, 3 Nov 2024 22:17:18 +0000 Subject: [PATCH] Fix visibility issue with fueltank attribute being private --- Cargo.toml | 2 +- src/commands/admin.rs | 2 +- src/helpers/mod.rs | 2 +- src/models/fueltank.rs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 25f67a6..ea4a76c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manifold" -version = "6.1.0" +version = "6.1.1" authors = ["Lucy Bladen "] edition = "2021" diff --git a/src/commands/admin.rs b/src/commands/admin.rs index 665563f..594f82c 100644 --- a/src/commands/admin.rs +++ b/src/commands/admin.rs @@ -17,7 +17,7 @@ async fn register_commands(ctx: ManifoldContext<'_>) -> ManifoldResult<()> { Ok(()) } -#[poise::command(slash_command, prefix_command, track_edits, aliases("sa"), required_permissions = "MODERATE_MEMBERS")] +#[poise::command(slash_command, prefix_command, track_edits, aliases("watch"), required_permissions = "MODERATE_MEMBERS")] async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to watch"] target: String) -> ManifoldResult<()> { ctx.serenity_context().set_activity(Activity::watching(&target)).await; diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs index e6c1c69..a914704 100644 --- a/src/helpers/mod.rs +++ b/src/helpers/mod.rs @@ -25,7 +25,7 @@ pub async fn paginate(ctx: ManifoldContext<'_>, message: ReplyHandle<'_>, pages: // We defined our button IDs to start with `ctx_id`. If they don't, some other command's // button was pressed .filter(move |press| press.data.custom_id.starts_with(&ctx_id.to_string())) - // Timeout when no navigation button has been pressed for 24 hours + // Timeout when no navigation button has been pressed for five minutes .timeout(std::time::Duration::from_secs(300)) .await { diff --git a/src/models/fueltank.rs b/src/models/fueltank.rs index f071201..81f14a8 100644 --- a/src/models/fueltank.rs +++ b/src/models/fueltank.rs @@ -19,9 +19,9 @@ pub trait Pump { #[derive(Clone, Debug, Serialize, Deserialize)] pub struct FuelTank { - pub(crate) source_uri: String, + pub source_uri: String, cache_name: Option, - pub(crate) api_key: Option, + pub api_key: Option, cache_mode: TankMode, } @@ -102,7 +102,7 @@ impl FuelTank { serde_json::to_writer(cache, &fuel)?; } - return Ok(single) + Ok(single) } pub async fn emit(&self) -> ManifoldResult