We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d83cf commit c5ed093Copy full SHA for c5ed093
RedditSharp/Things/Comment.cs
@@ -17,6 +17,7 @@ public class Comment : VotableThing
17
private const string EditUserTextUrl = "/api/editusertext";
18
private const string RemoveUrl = "/api/remove";
19
private const string DelUrl = "/api/del";
20
+ private const string ApproveUrl = "/api/approve";
21
private const string SetAsReadUrl = "/api/read_message";
22
23
[JsonIgnore]
@@ -228,6 +229,11 @@ private string SimpleAction(string endpoint)
228
229
return data;
230
}
231
232
+ public void Approve()
233
+ {
234
+ var data = SimpleAction(ApproveUrl);
235
+ }
236
+
237
public void Del()
238
{
239
var data = SimpleAction(DelUrl);
0 commit comments