Add more methods to moderation service

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-07-13 19:52:39 -04:00
parent a0b06ed651
commit 838db037b9
3 changed files with 255 additions and 7 deletions
+2
View File
@@ -68,6 +68,8 @@ func SetTimespan(v Timespan) SearchOptionSetter {
}
// setType sets the type option.
// It could be user, link, sr (subreddit).
// For mod actions, it's for the type of action (e.g. "banuser", "spamcomment").
func setType(v string) SearchOptionSetter {
return func(opts url.Values) {
opts.Set("type", v)