feat: Implement SlackTextFormat for SlackUserGroupId (#313)

This commit is contained in:
Takashi Takeda 2025-02-23 19:53:08 +09:00 committed by GitHub
parent babc68bfed
commit 8c44d8f9fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,6 +110,12 @@ impl SlackTextFormat for SlackUserId {
}
}
impl SlackTextFormat for SlackUserGroupId {
fn to_slack_format(&self) -> String {
format!("<!subteam^{}>", self.value())
}
}
#[derive(Debug, Eq, Hash, PartialEq, Clone, Serialize, Deserialize, ValueStruct)]
pub struct SlackBotId(pub String);