RedditSharp-DEPRECATED-
RedditSharp-DEPRECATED- copied to clipboard
Reddit API wrapper for .NET
Some time ago Reddit stopped revealing the actual downvotes count in the API. So downvotes are always set to 0 for Comment and Post instances (this is expected). The API...
```csharp if (subToRunOn == "/r/all") { MethodBase methodBase= typeof(Listing).GetMethod("Create", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy); var parameters = new Dictionary(); parameters.Add("reddit", reddit); parameters.Add("url", "/r/all/comments.json"); parameters.Add("max", -1); parameters.Add("perRequest", 100); Listing...
Should be simple enough to fix, but `SpamLink` and `SpamComment` are `ModActionType`s that are missing. Calls to get the moderator logs fail because of this distinction.
I have implemented some already, for example in the "Static Operation" regions of `ModeratableThing`. This allows accessing information/posts without having to follow the entire chain through the main `Reddit` object...
See: https://github.com/CrustyJew/RedditSharp/blob/master/RedditSharp/SpamFilterSettings.cs#L13 If you create a subreddit, you can see that by default, the spam filter for comments is set to low, but this class automatically sets it to high.
Unless someone can give some compelling reasons to keep the legacy stuff in, I'm starting to remove support for relying on ModHashes as it will help clean up some code...
- [ ] create a unit test - [x] update the example project - [x] more async methods and synchronous - [x] ToDo for me: Unscrewing what i recently did...
2.0 branch has CONTRIBUTING.md with some basic instructions now and a test project. Tests don't have to be exhaustive at the moment, but with all the changes to IAsyncEnumerables etc,...
Comment listings return `More` comment objects instead of `After` like other listings breaking the generic listing process. Needs to be overrode for comments or documented.
Historically things have been pulled via Properties on an object like `Subreddit.Moderators`. Changing everything over to async, this doesn't always work the best as it can't actually call an async...