-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ReadMessageLINEEvent to handle read message notifications
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { SourceEvent } from "./mod.ts"; | ||
import { LINEEventBase } from "./shared.ts"; | ||
|
||
/** | ||
* An event that indicates a message has been read. | ||
*/ | ||
export class ReadMessageLINEEvent extends LINEEventBase { | ||
type: "read-message" = "read-message"; | ||
|
||
/** | ||
* The mid of the user who read the message. | ||
* This is a placeholder property and will be replaced in the future. | ||
*/ | ||
readonly readUserMid: string; | ||
constructor(source: SourceEvent & { type: "talk" }) { | ||
super(source); | ||
this.readUserMid = source.event.param1 | ||
} | ||
} |