edit method
Replace the body of the object with body
.
body
is the markdown formatted content for the updated object. Returns
the current instance of the object after updating its fields.
Implementation
Future<UserContent> edit(String body) async {
final data = {'text': body, 'thing_id': fullname, 'api_type': 'json'};
// TODO(bkonyi): figure out what needs to be done here.
final updated = await reddit.post(apiPath['edit'], data);
setData(this, updated[0].data);
return this as UserContent;
}