Documentation
OAuth.OAuthComments
Constructors
constructor
• new OAuthComments(oauth)
Parameters
| Name | Type |
|---|---|
oauth | OAuth |
Defined in
Properties
oauth
• oauth: OAuth
Defined in
Methods
deleteComment
▸ deleteComment(commentId): Promise<void>
Deletes a Comment.
Last tested 05/18/2020 11:48. PASSING
Parameters
| Name | Type |
|---|---|
commentId | string |
Returns
Promise<void>
Defined in
editComment
▸ editComment(commentId, text): Promise<Comment>
Edit a Comment on a Video or Channel discussion.
Last tested 07/05/2021 17:40. PASSING
Parameters
| Name | Type | Description |
|---|---|---|
commentId | string | The ID of the comment. |
text | string | The new text content of the comment. |
Returns
Promise<Comment>
Defined in
markCommentAsSpam
▸ markCommentAsSpam(commentId): Promise<void>
Marks a Comment as spam.
Last tested NEVER
Parameters
| Name | Type | Description |
|---|---|---|
commentId | string | The ID of the comment to mark as spam. |
Returns
Promise<void>
Defined in
postComment
▸ postComment(text, channelResolvable, videoResolvable): Promise<Comment>
Post a Comment on a Video or Channel discussion.
Last tested 05/18/2020 11:48. PASSING
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The text content of the comment. |
channelResolvable | ChannelResolvable | The channel to post the comment on. |
videoResolvable | VideoResolvable | The video of the channel to post the comment on. If falsey, the comment will be posted to the channel discussion. |
Returns
Promise<Comment>
Defined in
replyToComment
▸ replyToComment(commentId, text): Promise<Comment>
Replies to a Comment.
Last tested 05/18/2020 11:48. PASSING
Parameters
| Name | Type | Description |
|---|---|---|
commentId | string | The ID of the comment to reply to. |
text | string | The text to reply with. Required for Comment.url to be correct. |
Returns
Promise<Comment>
Defined in
setCommentModerationStatus
▸ setCommentModerationStatus(commentId, moderationStatus, banAuthor?): Promise<void>
Sets the moderation status of a Comment
Last tested NEVER
Parameters
| Name | Type | Description |
|---|---|---|
commentId | string | The ID of the comment to set the moderation status of. |
moderationStatus | "rejected" | "heldForReview" | "published" | The moderation status to set the comment to. |
banAuthor? | boolean | Whether or not to ban the author from making future comments. |
Returns
Promise<void>