Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support channel.chat.message, channel.chat.notification and add suppo…
…rt for user context in other chat topics fixes #535
- Loading branch information
Showing
27 changed files
with
1,590 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/eventsub-base/src/events/EventSubChannelChatMessageEvent.external.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { type EventSubChatBadge, type EventSubChatMessageData } from './common/EventSubChatMessage.external'; | ||
|
||
/** | ||
* The type of message that was sent. | ||
*/ | ||
export type EventSubChatMessageType = 'text' | 'channel_points_highlighted' | 'channel_points_sub_only' | 'user_intro'; | ||
|
||
/** @private */ | ||
export interface EventSubChatMessageCheerData { | ||
bits: number; | ||
} | ||
|
||
/** @private */ | ||
export interface EventSubChatMessageReplyData { | ||
parent_message_id: string; | ||
parent_message_body: string; | ||
parent_user_id: string; | ||
parent_user_name: string; | ||
parent_user_login: string; | ||
thread_message_id: string; | ||
thread_user_id: string; | ||
thread_user_name: string; | ||
thread_user_login: string; | ||
} | ||
|
||
/** @private */ | ||
export interface EventSubChannelChatMessageEventData { | ||
broadcaster_user_id: string; | ||
broadcaster_user_login: string; | ||
broadcaster_user_name: string; | ||
chatter_user_id: string; | ||
chatter_user_login: string; | ||
chatter_user_name: string; | ||
message_id: string; | ||
message: EventSubChatMessageData; | ||
message_type: EventSubChatMessageType; | ||
badges: EventSubChatBadge[]; | ||
cheer: EventSubChatMessageCheerData | null; | ||
color: string; | ||
reply: EventSubChatMessageReplyData | null; | ||
channel_points_custom_reward_id: string | null; | ||
} |
Oops, something went wrong.