Skip to content

Commit

Permalink
Add missing properties in app_mention event payload (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Jul 10, 2024
1 parent 4d97757 commit 0afa1e6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/types/events/base-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit 0afa1e6

Please sign in to comment.