From 0afa1e6f3797bda8e323ba96cff86da28eafbd2c Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Wed, 10 Jul 2024 14:34:45 +0900 Subject: [PATCH] Add missing properties in app_mention event payload (#2160) --- src/types/events/base-events.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/types/events/base-events.ts b/src/types/events/base-events.ts index e31f92d75..f4677f108 100644 --- a/src/types/events/base-events.ts +++ b/src/types/events/base-events.ts @@ -227,6 +227,21 @@ export interface AppMentionEvent { bot_profile?: BotProfile; username?: string; team?: string; + // user_team, source_team, and user_profile + // can exist when the user who mentioned this bot is in a different workspace/org + user_team?: string; + source_team?: string; + user_profile?: { + name: string; + first_name: string; + real_name: string; + display_name: string; + team: string; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + avatar_hash?: string; + image_72?: string; + }; user?: string; text: string; attachments?: MessageAttachment[];