1.5.2 - Patchwork fix
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Evann Regnault 2024-04-16 16:02:21 +02:00
parent 7e16366669
commit 59c1602bc8
3 changed files with 2 additions and 12 deletions

2
Cargo.lock generated
View file

@ -1582,7 +1582,7 @@ dependencies = [
[[package]]
name = "obsessed-yanqing"
version = "1.5.1"
version = "1.5.2"
dependencies = [
"chrono",
"image-base64",

View file

@ -1,6 +1,6 @@
[package]
name = "obsessed-yanqing"
version = "1.5.1"
version = "1.5.2"
edition = "2021"
authors = ["Evann Regnault"]
license = "MIT"

View file

@ -387,7 +387,6 @@ pub async fn create_event_message(
ctx: Context<'_>,
#[description = "Create Event Tab"] channel: Channel
) -> Result<(), Error> {
let message = get_discord_status_message(ctx.guild().expect("Message not sent in guild").id.0).await;
if let Some(e) = message {
let rm = ChannelId::from(e.channel_id as u64)
@ -418,15 +417,6 @@ pub async fn create_event_message(
add_discord_status_message(sm).await;
let channel_name = channel.id().name(ctx).await.unwrap();
ctx.send(|f| {
f.embed(|e|{
e.title("Success !")
.description(format!("The event message has been created in #{}", channel_name))
}).ephemeral(true)
}).await.unwrap();
Ok(())
}