Skip to content

Commit 00f9966

Browse files
committed
Add FollowDetail type for FollowEvent
1 parent d33381d commit 00f9966

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,18 @@ export type UnsendEvent = {
152152
unsend: { messageId: string };
153153
} & EventBase;
154154

155+
/**
156+
* Whether a user has added your LINE Official Account as a friend or unblocked.
157+
*/
158+
export type FollowDetail = { isUnblocked: boolean };
159+
155160
/**
156161
* Event object for when your account is added as a friend (or unblocked).
157162
*/
158-
export type FollowEvent = { type: "follow" } & ReplyableEvent;
163+
export type FollowEvent = {
164+
type: "follow";
165+
follow: FollowDetail;
166+
} & ReplyableEvent;
159167

160168
/**
161169
* Event object for when your account is blocked.

0 commit comments

Comments
 (0)