-
Notifications
You must be signed in to change notification settings - Fork 7
ProjectComment
Top Dog edited this page Apr 6, 2019
·
4 revisions
The id of the comment (String)
The parentid of the comment if the comment is a reply (String)
??? (???)
The content of the comment (String)
The total amount of replies the comment has. (Number)
The project that the comment belongs to. (Project)
When the comment was created (String)
When the comment was last edited (String)
Whether the comment is visible or not. (Boolean)
The author of the comment (CommentAuthor)
Delete the message. NOTE: Authorisation required. Returns Promise<>
ProjectComment.delete().then(() => {
console.log("Making scratch a better place! Or not?");
});
Report the message. NOTE: Authorisation required, I am not responsible for any negative impacts this has on your account. Returns Promise<>
ProjectComment.report().then(() => {
console.log("Making scratch a better place!");
});
Reply to the message. NOTE: Authorisation required. Returns Promise<>
- Content
The content of the reply (String)
ProjectComment.reply("Thank you!").then(() => {
console.log("Thanked " + Comment.author.username + "!");
});