- API -
postedMessage = reaper.AZ_Slack_ReplayMessage(token, channel, threadTimeStamp, message, mentionList)
- API Detail -
▼入力値
token(string) : トークン(アプリ識別子)
channel(string) : 送信先ユーザー(ID or 名前)
threadTimeStamp(string) : タイムスタンプ(返信するメッセージ)
message(string) : メッセージ
mentionList(StringMap) : メンションリスト(ID or 名前)(任意 デフォルト : 空)
- チャンネル全体 : !channel
- グループメンション : !【チャンネル名orID】
- 個人メンション : @【名前orID】
▼出力値
postedMessage(SlackMessage) : 送信したメッセージ
- Result : 送信の成否
- Channel : チャンネルのID
- TimeStamp : 親スレッドのタイムスタンプ
- ThreadTimeStamp : メッセージのタイムスタンプ
- Message : 送信したメッセージ
- Error : エラーの内容(エラー時のみ)
※本APIを使用するにはSlack Botを作成する必要があります。詳しくはこちらをご参照ください。
- SIMPLE SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
token = "........" -- 使用するBotのトークン
channel = "........" -- チャンネル名
threadTimeStamp = "1734337098.984219"
message = "テスト\ntest"
mentionList = {"!channel", "!xxx", "@yyy"} -- メンションするグループ名、ユーザー名
slackMessage = reaper.AZ_Slack_ReplayMessage(token, channel, threadTimeStamp, message, mentionList)
ShowObject(slackMessage)
Msg(reaper.AZ_GetErrorCode())
Slack
AZ_Slack_ReplayMessage
対応バージョン:
1.2.0
以降
メッセージに返信する


