Massive dependencies bump

This commit is contained in:
Natsu Kagami 2022-06-11 15:48:43 -04:00
parent dd1867e222
commit 8632f0e99c
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
24 changed files with 744 additions and 841 deletions

View file

@ -2,23 +2,23 @@
name = "youmubot-prelude"
version = "0.1.0"
authors = ["Natsu Kagami <natsukagami@gmail.com>"]
edition = "2018"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0"
async-trait = "0.1"
futures-util = "0.3"
tokio = { version = "1", features = ["time"] }
anyhow = "1.0.57"
async-trait = "0.1.56"
futures-util = "0.3.21"
tokio = { version = "1.19.2", features = ["time"] }
youmubot-db = { path = "../youmubot-db" }
youmubot-db-sql = { path = "../youmubot-db-sql" }
reqwest = "0.11"
chrono = "0.4"
flume = "0.10"
dashmap = "4"
reqwest = "0.11.10"
chrono = "0.4.19"
flume = "0.10.13"
dashmap = "5.3.4"
[dependencies.serenity]
version = "0.10"
version = "0.11.2"
default-features = true
features = ["collector"]

View file

@ -241,7 +241,7 @@ pub async fn register_announcer(ctx: &Context, m: &Message, mut args: Args) -> C
.await?;
return Ok(());
}
let guild = m.guild(&ctx).await.expect("Guild-only command");
let guild = m.guild(&ctx).expect("Guild-only command");
let channel = m.channel_id.to_channel(&ctx).await?;
AnnouncerChannels::open(&*data)
.borrow_mut()?
@ -284,7 +284,7 @@ pub async fn remove_announcer(ctx: &Context, m: &Message, mut args: Args) -> Com
.await?;
return Ok(());
}
let guild = m.guild(&ctx).await.expect("Guild-only command");
let guild = m.guild(&ctx).expect("Guild-only command");
AnnouncerChannels::open(&*data)
.borrow_mut()?
.entry(key.clone())

View file

@ -127,7 +127,7 @@ async fn paginate_with_first_message(
.await?;
}
// Build a reaction collector
let mut reaction_collector = message.await_reactions(&ctx).removed(true).await;
let mut reaction_collector = message.await_reactions(&ctx).removed(true).build();
let mut page = 0;
// Loop the handler function.