Interface APINews

An interface representing a news item from the iFunny API

Hierarchy

  • APINews

Properties

banId?: string

The ID of the ban associated with this news item

banType?: "chat_access" | "comment_creation" | "content_creation" | "profile_access" | "repubing" | "smiling" | "subscribing" | "other" | "collective_shadow"

The type of ban associated with this news item

banTypeMessage?: string

The message associated with the ban type of this news item

comment?: APIComment

The comment associated with this news item

content?: APIContent

The content associated with this news item

countActiveStrike?: number

The number of active strikes

date: number

The timestamp of when the news item was posted

date_until?: number

The timestamp of when the news item will expire

expiredAt?: number

The timestamp of when the news item expired

imageUrl?: string

The URL of the image associated with this news item

mention_content?: APIContent

The content mentioned in this news item

mention_users?: APIMentionUser[]

The users mentioned in this news item

purchaseType?: string

The type of purchase associated with this news item

reply?: APIReply

The reply associated with this news item

smiles?: number

The number of smiles associated with this news item

strikeId?: string

The ID of the strike associated with this news item

text?: string

The text associated with this news item

title?: string

The title of this news item

type: "special" | "comment" | "mention_content" | "ban" | "ban_action" | "comment_for_repub" | "content_boost" | "user_deleted" | "featured" | "friend_registered" | "geo_friend_accepted" | "geo_friend_rejected" | "geo_friend_request" | "mention_user" | "purchase_onetime" | "purchase_subscription" | "rejected_by_customs" | "reply_for_comment" | "reported_comment_banned" | "reported_content_banned" | "reported_user_banned" | "repub" | "repub_of_repub" | "smile" | "smile_for_comment" | "smile_for_reply" | "smile_for_repub" | "smile_tracker" | "strike_action" | "expire_strike" | "subscribe" | "unban" | "unban_action" | "user_undeleted"

The type of this news item

url?: string

The URL associated with this news item

The user associated with this news item

username?: string

The username associated with this news item

Generated using TypeDoc