top of page
- API -

postedMessage = reaper.AZ_Slack_ReplayMessage(token, channel, threadTimeStamp, message, mentionList)

- API Detail-

▼input   value

  • token(string) : Token (application identifier)
  • toUser(string) : Destination user (ID or name)
  • message(string) : Message
  • useMention(boolean) : Whether to add mentions or not (optional Default: true)

- Entire channel : !channel

- Group mention: !【Channel name or ID】

- Direct mention: @[Name or ID]

▼output   value

  • postedMessage(SlackMessage) : sent Message

- Result : Transmission Success/Failure

- Channel : Channel ID

- TimeStamp : Parent thread timestamp

- ThreadTimeStamp : Message timestamp

- Message : Sent message

- Error : Error details (only when an error occurs))


To use this API, you need to create a Slack Bot. Please refer here for details.

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


token = "........" --Bot token to use

channel = "........" -- Channel Name

threadTimeStamp = "1734337098.984219"

message = "TEST\ntest"

mentionList = {"!channel", "!xxx", "@yyy"} -- Group name to mention, username


slackMessage = reaper.AZ_Slack_ReplayMessage(token, channel, threadTimeStamp, message, mentionList)


ShowObject(slackMessage) 


Msg(reaper.AZ_GetErrorCode())


Slack

AZ_Slack_ReplayMessage

Supported versions:

1.2.0

onwards

Reply to message

bottom of page