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}`;