Compare commits
No commits in common. "fb74ae27bda12ae3bc8c9ad5c7f9339d7222a0ab" and "4e60cef97ab6395afb139ee24f9240237593d032" have entirely different histories.
fb74ae27bd
...
4e60cef97a
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "manifold"
|
||||
version = "6.1.1"
|
||||
version = "6.1.0"
|
||||
authors = ["Lucy Bladen <admin@lbladen.uk>"]
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ async fn register_commands(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
|
|||
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<()> {
|
||||
ctx.serenity_context().set_activity(Activity::watching(&target)).await;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 five minutes
|
||||
// Timeout when no navigation button has been pressed for 24 hours
|
||||
.timeout(std::time::Duration::from_secs(300))
|
||||
.await
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ pub trait Pump<V> {
|
|||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct FuelTank {
|
||||
pub source_uri: String,
|
||||
pub(crate) source_uri: String,
|
||||
cache_name: Option<String>,
|
||||
pub api_key: Option<String>,
|
||||
pub(crate) api_key: Option<String>,
|
||||
cache_mode: TankMode,
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ impl FuelTank {
|
|||
serde_json::to_writer(cache, &fuel)?;
|
||||
}
|
||||
|
||||
Ok(single)
|
||||
return Ok(single)
|
||||
}
|
||||
|
||||
pub async fn emit<U: Debug>(&self) -> ManifoldResult<U>
|
||||
|
|
|
|||
Loading…
Reference in New Issue