UNPKG

justreddit

Version:

A simple package for getting random posts, random images, random SubReddits, and SubReddit info.

38 lines (37 loc) 903 B
export interface Subreddit { id: string; url: string; language: string; name: string; description: string; nsfw: boolean; subscribers: number; created: Date; usersOnline: number; communityReviewed: boolean; allOriginalContent: boolean; colors: { primary: string; key: string; }; banners: { desktop: string; mobile: string; }; allows: { posting: boolean; emojis: boolean; images: boolean; videos: boolean; polls: boolean; videogifs: boolean; discovery: boolean; galleries: boolean; mediaInComments: boolean; predictions: boolean; talks: boolean; followers: boolean; }; } export declare function subreddit(subreddit: string): Promise<Subreddit>; export declare function randomSubreddit(): Promise<Subreddit>;