Skip to content

Commit

Permalink
fix(webhook): make titles simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jan 18, 2025
1 parent 5ea1e27 commit fcd9a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/mod_created.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct NewModVersionAcceptedEvent {
impl DiscordWebhook for NewModAcceptedEvent {
fn to_discord_webhook(&self) -> DiscordMessage {
DiscordMessage::new().embed(
&format!("πŸŽ‰ New mod accepted: {} {}", self.name, self.version),
&format!("πŸŽ‰ New mod: {} {}", self.name, self.version),
Some(&format!("https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\nAccepted by: [{}](https://github.com/{})",
self.id, self.owner.display_name, self.owner.username, self.verified_by.display_name, self.verified_by.username)),
Some(&format!("{}/v1/mods/{}/logo", self.base_url, self.id)),
Expand All @@ -46,7 +46,7 @@ impl DiscordWebhook for NewModVersionAcceptedEvent {
};

DiscordMessage::new().embed(
&format!("πŸŽ‰ Mod updated: {} {}", self.name, self.version),
&format!("πŸŽ‰ Updated {} to {}", self.name, self.version),
Some(&format!(
"https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\n{}",
self.id, self.owner.display_name, self.owner.username, accepted_msg
Expand Down

0 comments on commit fcd9a90

Please sign in to comment.