You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 14m 27s logged

Made a carousal for my blogs!

This was surprisingly simple due to slack block builder! I just used the default carousal they provide and put in my data in-place of the dummy texts :)

But there was a problem! If someone invocated the /icekeem-blog command from #channel123 it the msg will be sent to my personal channel! That was bad and I was having a hard time figuring out how to get the channel id where the command was invocated.

The function I was using:

    await client.chat.postEphemeral({ 
         user: presser, 
         channel: ChannelID, 
         text: "text",
         blocks: [...],
     })

I don’t know why but I was under a illusion that respond function can’t do the blocks that my carousal uses…

When I tried, it worked!

  await respond({ text: `text`, blocks: [...] })
0
41

Comments 0

No comments yet. Be the first!