Commenting Methods
Info
This is Unofficial and a fan made project, do not ask ScriptBlox for support.
AddComment
Adds a comment to the specified script using ScriptBlox.
CommentObject AddComment(ScriptObject script, string authorization, string comment)
Parameters
script
: (ScriptObject): The script object to add the comment to.authorization
: (string): The authorization token.comment
: (string): The text of the comment.Return Value
CommentObject
: The newly added CommentObject.Exceptions
None
DeleteComment
Deletes a comment with the specified comment ID using the ScriptBlox API.
BoolStatus DeleteComment(string authorization, string commentId)
Parameters
script
: (ScriptObject): The script object to add the comment to.authorization
(string): The authorization token.commentId
(string): The ID of the comment to delete.Return Value
BoolStatus
: A BoolStatus indicating whether the comment deletion was successful.Exceptions
None
GetCommentsFromScript
Retrieves the comments associated with a script from ScriptBlox.
public List<CommentObject> RetrieveComments(ScriptObject script)
Parameters
script
: (ScriptObject): The script object to gather comments from.Return Value
List<CommentObject>
: A list of CommentObject representing the comments associated with the script.Exceptions
ScriptBloxException
: Thrown when an error occurs while fetching the JSON, when the API returns an error message, or when a backend error occurs.