Fix data pack webhook (#513)
This commit is contained in:
parent
6aaab09601
commit
df4680ee09
@ -153,6 +153,7 @@ pub async fn send_discord_webhook(
|
|||||||
"sponge" => 1049793416969605231,
|
"sponge" => 1049793416969605231,
|
||||||
"velocity" => 1049793419108700170,
|
"velocity" => 1049793419108700170,
|
||||||
"waterfall" => 1049793420937412638,
|
"waterfall" => 1049793420937412638,
|
||||||
|
"datapack" => 1057895494652788866,
|
||||||
_ => 1049805243866681424,
|
_ => 1049805243866681424,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -185,6 +186,8 @@ pub async fn send_discord_webhook(
|
|||||||
|
|
||||||
if loaders.iter().all(|x| PLUGIN_LOADERS.contains(&&**x)) {
|
if loaders.iter().all(|x| PLUGIN_LOADERS.contains(&&**x)) {
|
||||||
project_type = "plugin".to_string();
|
project_type = "plugin".to_string();
|
||||||
|
} else if loaders.iter().any(|x| x == "datapack") {
|
||||||
|
project_type = "datapack".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
let embed = DiscordEmbed {
|
let embed = DiscordEmbed {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user