shuttle 0.34.1
This commit is contained in:
parent
14ab422496
commit
f825bc5d3c
4 changed files with 72 additions and 650 deletions
697
Cargo.lock
generated
697
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
10
Cargo.toml
10
Cargo.toml
|
@ -7,13 +7,13 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
poise = "0.5.6"
|
||||
serenity = { version = "0.11.6", default-features = false, features = ["client", "gateway", "model", "rustls_backend", "utils"]}
|
||||
serenity = { version = "0.12.0", default-features = false, features = ["client", "gateway", "model", "rustls_backend", "utils"]}
|
||||
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread", "rt"] }
|
||||
env_logger = "0.10.0"
|
||||
shuttle-secrets = "0.33.0"
|
||||
shuttle-poise = "0.33.0"
|
||||
shuttle-runtime = "0.33.0"
|
||||
shuttle-secrets = "0.34.1"
|
||||
shuttle-poise = "0.34.1"
|
||||
shuttle-runtime = "0.34.1"
|
||||
anyhow = "1.0.75"
|
||||
tracing = "0.1.40"
|
||||
regex = "1.10.2"
|
||||
cargo-shuttle = "0.33.0"
|
||||
cargo-shuttle = "0.34.1"
|
||||
|
|
|
@ -8,7 +8,7 @@ pub(crate) async fn send(
|
|||
if let Err(why) = ctx
|
||||
.send(|m| {
|
||||
m.content(reply)
|
||||
.allowed_mentions(|am| am.parse(serenity::builder::ParseValue::Roles))
|
||||
.allowed_mentions(|am| am.parse(poise::serenity_prelude::ParseValue::Roles))
|
||||
})
|
||||
.await
|
||||
{
|
||||
|
|
|
@ -5,7 +5,6 @@ use crate::commands::lfg::Mode::*;
|
|||
//from main.rs
|
||||
use crate::{Context, Error};
|
||||
//
|
||||
use serenity::model::id::RoleId;
|
||||
use serenity::model::mention::Mention;
|
||||
use serenity::model::mention::Mention::Role;
|
||||
use crate::commands::command_helper;
|
||||
|
@ -87,13 +86,13 @@ pub(crate) async fn lfg(
|
|||
let ping: Mention;
|
||||
match mode {
|
||||
Casual => match map {
|
||||
DeadEnd => ping = Role(RoleId(1005837123921915914)),
|
||||
BadBlood => ping = Role(RoleId(1140190470698438666)),
|
||||
AlienArcadium => ping = Role(RoleId(1105917281898336356)),
|
||||
DeadEnd => ping = Role(1005837123921915914.into()),
|
||||
BadBlood => ping = Role(1140190470698438666.into()),
|
||||
AlienArcadium => ping = Role(1105917281898336356.into())
|
||||
},
|
||||
Speedrun => ping = Role(RoleId(1005836989595144243)),
|
||||
Challenge => ping = Role(RoleId(1005836864680361994)),
|
||||
Event => ping = Role(RoleId(1175116511095050331))
|
||||
Speedrun => ping = Role(1005836989595144243.into()),
|
||||
Challenge => ping = Role(1005836864680361994.into()),
|
||||
Event => ping = Role(1175116511095050331.into())
|
||||
}
|
||||
let diff_name: &str = if map != AlienArcadium {
|
||||
difficulty.unwrap_or(Normal).name()
|
||||
|
|
Loading…
Add table
Reference in a new issue