From df4680ee09fbdeb79d7902e0cda60ec75cbf0e9d Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:13:39 -0700 Subject: [PATCH] Fix data pack webhook (#513) --- src/util/webhook.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/webhook.rs b/src/util/webhook.rs index b1116ff87..e26fe75cf 100644 --- a/src/util/webhook.rs +++ b/src/util/webhook.rs @@ -153,6 +153,7 @@ pub async fn send_discord_webhook( "sponge" => 1049793416969605231, "velocity" => 1049793419108700170, "waterfall" => 1049793420937412638, + "datapack" => 1057895494652788866, _ => 1049805243866681424, }; @@ -185,6 +186,8 @@ pub async fn send_discord_webhook( if loaders.iter().all(|x| PLUGIN_LOADERS.contains(&&**x)) { project_type = "plugin".to_string(); + } else if loaders.iter().any(|x| x == "datapack") { + project_type = "datapack".to_string(); } let embed = DiscordEmbed {