From 6b78958c4aaa1f708e16d1f363ce985f5dd03d11 Mon Sep 17 00:00:00 2001 From: Basit Ali Date: Sat, 29 May 2021 17:41:51 +0500 Subject: [PATCH] Fix: `user` argument in postEphemeral The expected argument is `user` and not `userId` --- src/core/phelia.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/phelia.ts b/src/core/phelia.ts index dce4106..17db86a 100644 --- a/src/core/phelia.ts +++ b/src/core/phelia.ts @@ -150,7 +150,7 @@ export class Phelia { async postEphemeral

( message: PheliaMessage

, channel: string, - userId: string, + user: string, props: p = null, slackOptions?: ChatPostEphemeralArguments ): Promise { @@ -176,12 +176,12 @@ export class Phelia { const { channel: channelID, ts } = await this.client.chat.postEphemeral({ ...messageData, - userId, + user, channel, ...slackOptions, }); - const user = await this.enrichUser(userId); + const user = await this.enrichUser(user); const messageKey = `${channelID}:${ts}`;