Skip to content

Commit

Permalink
Update app to client
Browse files Browse the repository at this point in the history
  • Loading branch information
shirleyfyx committed Jan 6, 2024
1 parent 7480474 commit 96157ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]> {
export async function getAllEmoji(client: WebClient): Promise<string[]> {
try {
const result = await app.client.emoji.list();
const result = await client.emoji.list();
if (!result.emoji) {
throw new Error("No emojis found");
}
Expand Down

0 comments on commit 96157ff

Please sign in to comment.