Skip to content

Commit 8d5c15d

Browse files
authored
Merge pull request #427 from dlackty/mention-all
Add support of mention for all
2 parents 623c013 + 1643162 commit 8d5c15d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/types.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,18 @@ export type TextEventMessage = {
405405
* 8 is the length.
406406
*/
407407
length: number;
408-
userId: string;
408+
/**
409+
* Mentioned target.
410+
*
411+
* - `user`: User.
412+
* - `all`: Entire group.
413+
*/
414+
type: "user" | "all";
415+
/**
416+
* User ID of the mentioned user. Only included if mention.mentions[].type is user
417+
* and the user consents to the LINE Official Account obtaining their user profile information.
418+
*/
419+
userId?: string;
409420
}[];
410421
};
411422
} & EventMessageBase;

0 commit comments

Comments
 (0)