diff --git a/src/utils/slack.ts b/src/utils/slack.ts index e72f83c..6825361 100644 --- a/src/utils/slack.ts +++ b/src/utils/slack.ts @@ -26,9 +26,9 @@ export function postMessage(client: WebClient, channel: SlackChannel, text: stri * @param app The Slack App instance. * @returns A promise that resolves to an array of emoji names. */ -export async function getAllEmoji(app: App): Promise { +export async function getAllEmoji(client: WebClient): Promise { try { - const result = await app.client.emoji.list(); + const result = await client.emoji.list(); if (!result.emoji) { throw new Error("No emojis found"); }