interface RedditNodeParameters {
additionalFields?: {
sort?:
| "top"
| "new"
| "relevance"
| "comments"
| "hot";
};
commentId?: string;
commentText?: string;
content?: "about"
| "rules";
details?:
| "comments"
| "identity"
| "blockedUsers"
| "friends"
| "karma"
| "prefs"
| "saved"
| "trophies"
| "about"
| "gilded"
| "overview"
| "submitted";
filters?: | { keyword?: string; trending?: boolean }
| { category?: "top" | "new" | "hot" | "rising" };
keyword?: string;
kind?: "image" | "link" | "self";
limit?: number;
location?: "subreddit" | "allReddit";
operation?:
| "create"
| "get"
| "getAll"
| "delete"
| "search"
| "reply";
postId?: string;
replyText?: string;
resource?: | "user"
| "post"
| "profile"
| "postComment"
| "subreddit";
resubmit?: boolean;
returnAll?: boolean;
subreddit?: string;
text?: string;
title?: string;
url?: string;
username?: string;
}Properties§
readonly additional Fields?: { ... }readonly comment Id?: stringID of the comment to remove. Found in the comment URL:/r/[subreddit_name]/comments/[post_id]/[post_title]/[comment_id]
readonly comment Text?: stringText of the comment. Markdown supported.
readonly content?: "about" | "rules"Subreddit content to retrieve Default: "about"
readonly details?:
| "comments"
| "identity"
| "blockedUsers"
| "friends"
| "karma"
| "prefs"
| "saved"
| "trophies"
| "about"
| "gilded"
| "overview"
| "submitted"Details of my account to retrieve Default: "identity"
readonly filters?:
| { keyword?: string; trending?: boolean }
| { category?: "top" | "new" | "hot" | "rising" }Default: {}
readonly keyword?: stringThe keyword for the search
readonly kind?: "image" | "link" | "self"The kind of the post to create Default: "self"
readonly limit?: numberMax number of results to return Default: 100 Type options: {"minValue":1,"maxValue":100}
readonly location?: "subreddit" | "allReddit"Location where to search for posts Default: "subreddit"
readonly operation?: "create" | "get" | "getAll" | "delete" | "search" | "reply"Default: "create"
readonly post Id?: stringID of the post to write the comment to. Found in the post URL: /r/[subreddit_name]/comments/[post_id]/[post_title]
readonly reply Text?: stringText of the reply. Markdown supported.
readonly resource?: "user" | "post" | "profile" | "postComment" | "subreddit"Default: "post"
readonly resubmit?: booleanWhether the URL will be posted even if it was already posted to the subreddit before. Otherwise, the re-posting will trigger an error.
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly subreddit?: stringThe name of subreddit where the post is
readonly text?: stringText of the post. Markdown supported.
readonly title?: stringTitle of the post, up to 300 characters long
readonly url?: stringURL of the post
readonly username?: stringReddit ID of the user to retrieve
Default: {}