Skip to content

Commit 78166d4

Browse files
committed
Add ModPermissions property to Subreddit object
1 parent 3e694a7 commit 78166d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

RedditSharp/Things/Subreddit.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ public class Subreddit : Thing
9191
[JsonProperty("user_is_moderator")]
9292
public bool UserIsModerator { get; set; }
9393

94+
/// <summary>
95+
/// Property giving the moderator permissions of the logged in user on this subreddit.
96+
/// </summary>
97+
[JsonProperty("mod_permissions")]
98+
[JsonConverter(typeof(ModeratorPermissionConverter))]
99+
public ModeratorPermission ModPermissions { get; set; }
100+
94101
/// <summary>
95102
/// Property determining whether the current logged in user is banned from the subreddit.
96103
/// </summary>

0 commit comments

Comments
 (0)