GistComment¶
A comment on a gist. Provides convenience methods to update the comment's body or delete the comment entirely.
Constructors¶
create¶
new val create(
creds: Credentials val,
id': I64 val,
node_id': String val,
url': String val,
body': String val,
user': (User val | None val),
author_association': String val,
created_at': String val,
updated_at': String val)
: GistComment val^
Parameters¶
- creds: Credentials val
- id': I64 val
- node_id': String val
- url': String val
- body': String val
- user': (User val | None val)
- author_association': String val
- created_at': String val
- updated_at': String val
Returns¶
- GistComment val^
Public fields¶
let id: I64 val¶
let node_id: String val¶
let url: String val¶
let body: String val¶
let user: (User val | None val)¶
let author_association: String val¶
let created_at: String val¶
let updated_at: String val¶
Public Functions¶
update¶
Updates this comment's body text and returns the updated comment.
Parameters¶
- new_body: String val
Returns¶
- Promise[(GistComment val | RequestError val)] tag
delete¶
Deletes this comment.
Returns¶
- Promise[(Deleted val | RequestError val)] tag