diff --git a/lib/types/farcaster-types.js b/lib/types/farcaster-types.js --- a/lib/types/farcaster-types.js +++ b/lib/types/farcaster-types.js @@ -33,5 +33,9 @@ +id: string, +name: string, +follower_count: number, + +lead: { + +fid: number, + ... + }, ... }; diff --git a/lib/utils/neynar-client.js b/lib/utils/neynar-client.js --- a/lib/utils/neynar-client.js +++ b/lib/utils/neynar-client.js @@ -169,6 +169,13 @@ return this.fetchFollowedFarcasterChannelsWithFilter(fid, () => true); } + async fetchLedFarcasterChannels(fid: string): Promise { + return this.fetchFollowedFarcasterChannelsWithFilter( + fid, + channel => channel.lead.fid === parseInt(fid), + ); + } + async fetchFarcasterChannelByName( channelName: string, ): Promise {