Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/phelia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class Phelia {
async postEphemeral<p>(
message: PheliaMessage<p>,
channel: string,
userId: string,
user: string,
props: p = null,
slackOptions?: ChatPostEphemeralArguments
): Promise<string> {
Expand All @@ -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}`;

Expand Down