Skip to content

Commit 44ccd9d

Browse files
committed
Implement property determining whether the current logged in user is a mod or banned from a sub.
1 parent 2259f83 commit 44ccd9d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

RedditSharp/Things/Subreddit.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ public class Subreddit : Thing
8585
[JsonConverter(typeof(UrlParser))]
8686
public Uri Url { get; set; }
8787

88+
/// <summary>
89+
/// Property determining whether the current logged in user is a moderator on this subreddit.
90+
/// </summary>
91+
[JsonProperty("user_is_moderator")]
92+
public bool UserIsModerator { get; set; }
93+
94+
/// <summary>
95+
/// Property determining whether the current logged in user is banned from the subreddit.
96+
/// </summary>
97+
[JsonProperty("user_is_banned")]
98+
public bool UserIsBanned { get; set; }
99+
88100
[JsonIgnore]
89101
public string Name { get; set; }
90102

0 commit comments

Comments
 (0)