snapcap
API ReferenceInterfaces

Friend

Interface: Friend

Defined in: api/friends/types.ts:176

A friend in the logged-in user's social graph.

Superset of User with friend-link metadata and (when surfaced by the server) timestamps.

Extends

Indexable

[k: string]: unknown

Forward-compat for fields Snap adds to the public-info envelope.

Properties

PropertyTypeDescriptionInherited fromDefined in
addedAt?DateWhen the friend was added (server-side ms timestamp surfaced as a Date).-api/friends/types.ts:180
bitmojiPublicInfo?BitmojiPublicInfoBitmoji avatar identifiers — see BitmojiPublicInfo.FriendsUser.bitmojiPublicInfoapi/friends/types.ts:157
creatorSubscriptionProductsInfo?unknownCreator-subscription products envelope; shape varies, kept untyped.FriendsUser.creatorSubscriptionProductsInfoapi/friends/types.ts:161
displayName?stringDisplay name shown in the Snap UI.FriendsUser.displayNameapi/friends/types.ts:145
friendTypeFriendLinkTypeLink state — "mutual" for entries returned by IFriendsManager.list.-api/friends/types.ts:178
isOfficial?booleantrue for verified Snap-official accounts.FriendsUser.isOfficialapi/friends/types.ts:149
isPlusSubscriber?booleantrue if the friend's account has Snapchat+.-api/friends/types.ts:184
isPopular?booleantrue for accounts Snap surfaces as popular (high follower count, public profile, etc.).FriendsUser.isPopularapi/friends/types.ts:151
isStoryMuted?booleantrue if the logged-in user has muted this friend's story.-api/friends/types.ts:182
mutableUsername?stringCurrent handle when the user has changed it (Snap retains the original username).FriendsUser.mutableUsernameapi/friends/types.ts:147
notFound?trueSet only by IFriendsManager.getUsers when the server confirmed no record exists.FriendsUser.notFoundapi/friends/types.ts:164
profileLogo?unknownProfile-logo envelope; shape varies, kept untyped.FriendsUser.profileLogoapi/friends/types.ts:159
profileTier?numberProfile-tier int; semantics opaque (observed: 1 for typical accounts).FriendsUser.profileTierapi/friends/types.ts:155
snapProId?stringSnapchat+ subscription product id; empty string when not subscribed.FriendsUser.snapProIdapi/friends/types.ts:153
userIdstringHyphenated UUID (string view of Snap's userId bytes).FriendsUser.userIdapi/friends/types.ts:140
usernamestringSnap username (handle). May be empty when populated from a partial source.FriendsUser.usernameapi/friends/types.ts:142

On this page