Skip to content

Commit ad415b9

Browse files
committed
fix(webhook): fix a typo in the featured message
1 parent 739d1c8 commit ad415b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/events/mod_created.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl DiscordWebhook for NewModAcceptedEvent {
2828
fn to_discord_webhook(&self) -> DiscordMessage {
2929
DiscordMessage::new().embed(
3030
&format!("New mod accepted: {} {}", self.name, self.version),
31-
Some(&format!("https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\nAccepted by: [{}](https://github.com/{}))",
31+
Some(&format!("https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\nAccepted by: [{}](https://github.com/{})",
3232
self.id, self.owner.display_name, self.owner.username, self.verified_by.display_name, self.verified_by.username)),
3333
Some(&format!("{}/v1/mods/{}/logo", self.base_url, self.id)),
3434
)

src/events/mod_feature.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl DiscordWebhook for ModFeaturedEvent {
1919

2020
DiscordMessage::new().embed(
2121
title,
22-
Some(&format!("https://geode-sdk.org/mods/{}\n\nOwned by: [{}](https://github.com/{})\nAction done by: [{}](https://github.com/{}))",
22+
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)),
2525
)

0 commit comments

Comments
 (0)