diff --git a/lib/types.ts b/lib/types.ts index e9b7ac071..730fe9b8b 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -152,10 +152,18 @@ export type UnsendEvent = { unsend: { messageId: string }; } & EventBase; +/** + * Whether a user has added your LINE Official Account as a friend or unblocked. + */ +export type FollowDetail = { isUnblocked: boolean }; + /** * Event object for when your account is added as a friend (or unblocked). */ -export type FollowEvent = { type: "follow" } & ReplyableEvent; +export type FollowEvent = { + type: "follow"; + follow: FollowDetail; +} & ReplyableEvent; /** * Event object for when your account is blocked.