Skip to content

GistComment

[Source]

A comment on a gist. Provides convenience methods to update the comment's body or delete the comment entirely.

class val GistComment

Constructors

create

[Source]

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

Returns


Public fields

let id: I64 val

[Source]


let node_id: String val

[Source]


let url: String val

[Source]


let body: String val

[Source]


let user: (User val | None val)

[Source]


let author_association: String val

[Source]


let created_at: String val

[Source]


let updated_at: String val

[Source]


Public Functions

update

[Source]

Updates this comment's body text and returns the updated comment.

fun box update(
  new_body: String val)
: Promise[(GistComment val | RequestError val)] tag

Parameters

Returns


delete

[Source]

Deletes this comment.

fun box delete()
: Promise[(Deleted val | RequestError val)] tag

Returns