Skip to content
Merged
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
24 changes: 20 additions & 4 deletions src/types/events/base-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,15 +611,31 @@ export interface PinRemovedEvent extends StringIndexed {
event_ts: string;
}

interface ReactionMessageItem {
type: 'message';
channel: string;
ts: string;
}

interface ReactionFileItem {
type: 'file';
file: string;
}

// This type is deprecated.
// See https://api.slack.com/changelog/2018-05-file-threads-soon-tread
interface ReactionFileCommentItem {
type: 'file_comment';
file_comment: string;
file: string;
}

export interface ReactionAddedEvent extends StringIndexed {
type: 'reaction_added';
user: string;
reaction: string;
item_user: string;
// TODO: incomplete, should be message | file | file comment (deprecated)
// https://api.slack.com/events/reaction_added
item: {
};
item: ReactionMessageItem | ReactionFileItem | ReactionFileCommentItem;
event_ts: string;
}

Expand Down