Skip to content

Commit

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

0 comments on commit c267bfd

Please sign in to comment.