Skip to content

Commit eefe2c6

Browse files
committed
fix(webhook): add mod name to title for feature
1 parent b0d6fce commit eefe2c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/events/mod_feature.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ pub struct ModFeaturedEvent {
1313
impl DiscordWebhook for ModFeaturedEvent {
1414
fn to_discord_webhook(&self) -> DiscordMessage {
1515
let title = match self.featured {
16-
true => "⭐ Mod featured!",
17-
false => "😢 Mod unfeatured...",
16+
true => format!("⭐ Mod featured: {}", self.name),
17+
false => format!("😢 Mod unfeatured: {}", self.name),
1818
};
1919

2020
DiscordMessage::new().embed(
21-
title,
21+
&title,
2222
Some(&format!("https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\nAction done by: [{}](https://github.com/{})",
2323
self.id, self.owner.display_name, self.owner.username, self.admin.display_name, self.admin.username)),
2424
Some(&format!("{}/v1/mods/{}/logo", self.base_url, self.id)),

0 commit comments

Comments
 (0)