Skip to content

Commit 23ec9e0

Browse files
committed
Go back to emphemral messages
1 parent ce63f0a commit 23ec9e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ app.event("message", async ({ event, client }) => {
6565

6666
try {
6767
// Respond with an ephemeral message containing a dropdown menu
68-
await client.chat.postMessage({
68+
await client.chat.postEphemeral({
6969
channel: event.channel, // The channel where the message was posted
70+
user: event.user, // The user who triggered the event
7071
text: `Hello, <@${event.user}>! Please choose a category:`,
7172
blocks: [
7273
{

0 commit comments

Comments
 (0)