mirror of
https://github.com/System-End/slack-morphism-rust.git
synced 2026-04-19 22:05:15 +00:00
feat: Implement SlackTextFormat for SlackUserGroupId (#313)
This commit is contained in:
parent
babc68bfed
commit
8c44d8f9fd
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue