Compare commits

..

No commits in common. "fb74ae27bda12ae3bc8c9ad5c7f9339d7222a0ab" and "4e60cef97ab6395afb139ee24f9240237593d032" have entirely different histories.

4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "manifold" name = "manifold"
version = "6.1.1" version = "6.1.0"
authors = ["Lucy Bladen <admin@lbladen.uk>"] authors = ["Lucy Bladen <admin@lbladen.uk>"]
edition = "2021" edition = "2021"

View File

@ -17,7 +17,7 @@ async fn register_commands(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
Ok(()) Ok(())
} }
#[poise::command(slash_command, prefix_command, track_edits, aliases("watch"), required_permissions = "MODERATE_MEMBERS")] #[poise::command(slash_command, prefix_command, track_edits, aliases("sa"), required_permissions = "MODERATE_MEMBERS")]
async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to watch"] target: String) -> ManifoldResult<()> { async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to watch"] target: String) -> ManifoldResult<()> {
ctx.serenity_context().set_activity(Activity::watching(&target)).await; ctx.serenity_context().set_activity(Activity::watching(&target)).await;

View File

@ -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 // We defined our button IDs to start with `ctx_id`. If they don't, some other command's
// button was pressed // button was pressed
.filter(move |press| press.data.custom_id.starts_with(&ctx_id.to_string())) .filter(move |press| press.data.custom_id.starts_with(&ctx_id.to_string()))
// Timeout when no navigation button has been pressed for five minutes // Timeout when no navigation button has been pressed for 24 hours
.timeout(std::time::Duration::from_secs(300)) .timeout(std::time::Duration::from_secs(300))
.await .await
{ {

View File

@ -19,9 +19,9 @@ pub trait Pump<V> {
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
pub struct FuelTank { pub struct FuelTank {
pub source_uri: String, pub(crate) source_uri: String,
cache_name: Option<String>, cache_name: Option<String>,
pub api_key: Option<String>, pub(crate) api_key: Option<String>,
cache_mode: TankMode, cache_mode: TankMode,
} }
@ -102,7 +102,7 @@ impl FuelTank {
serde_json::to_writer(cache, &fuel)?; serde_json::to_writer(cache, &fuel)?;
} }
Ok(single) return Ok(single)
} }
pub async fn emit<U: Debug>(&self) -> ManifoldResult<U> pub async fn emit<U: Debug>(&self) -> ManifoldResult<U>