mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-14 13:10:47 +08:00
feat: add status reactions across messaging channels
This commit is contained in:
parent
aa8fd71b93
commit
da01e3acee
30 changed files with 1853 additions and 274 deletions
|
|
@ -276,6 +276,34 @@ export class SlackApi {
|
|||
});
|
||||
}
|
||||
|
||||
addReaction({ channelId, messageTs, emojiName, signal, timeoutMs }) {
|
||||
return this.#request('reactions.add', {
|
||||
tokenKind: 'bot',
|
||||
signal,
|
||||
timeoutMs,
|
||||
retry: false,
|
||||
body: {
|
||||
channel: slackId(channelId, 'channel id'),
|
||||
timestamp: requiredString(messageTs, 'message timestamp'),
|
||||
name: requiredString(emojiName, 'reaction name'),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
removeReaction({ channelId, messageTs, emojiName, signal, timeoutMs }) {
|
||||
return this.#request('reactions.remove', {
|
||||
tokenKind: 'bot',
|
||||
signal,
|
||||
timeoutMs,
|
||||
retry: false,
|
||||
body: {
|
||||
channel: slackId(channelId, 'channel id'),
|
||||
timestamp: requiredString(messageTs, 'message timestamp'),
|
||||
name: requiredString(emojiName, 'reaction name'),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
startStream({ channelId, threadTs, recipientTeamId, recipientUserId, markdownText, signal }) {
|
||||
return this.#request('chat.startStream', {
|
||||
tokenKind: 'bot',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue