Skip to content

Commit

Permalink
testing out event
Browse files Browse the repository at this point in the history
  • Loading branch information
mgwalker committed Dec 11, 2024
1 parent d885385 commit 1512c4e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/scripts/best-of-slack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = async (app) => {
app.event("reaction_added", async ({ item: { channel, ts } }) => {
const link = await app.client.chat.getPermalink({
channel,
message_ts: ts,
});
console.log(link);
});
};

0 comments on commit 1512c4e

Please sign in to comment.