Fix data pack webhook (#513)

This commit is contained in:
Geometrically 2022-12-29 09:13:39 -07:00 committed by GitHub
parent 6aaab09601
commit df4680ee09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {