LoginSignup
0
0

More than 3 years have passed since last update.

slack コード上でのグループメンションの書き方

Last updated at Posted at 2020-02-26

グループメンションつけたい時どう書くんだっけって思うことがあるのでメモレベルで残しておく
attachmentsのtextをメンションにしたい場合

    "attachments":[
      {
        "fallback":"テキトー",
        "pretext":"テキトー",
        "color":"#2eb886",
        "text": "<!subteam^[id]|[handle]>",
        "fields": ...
      }
    ]

[id]と[handle]は以下のapiから取得
https://api.slack.com/methods/usergroups.list/test

idとhandleが返ってくるので、それを埋め込めばいける

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0