API Types
Subreddit Notation
Notation Syntax (in EBNF Grammar)
Where the final subreddit grammar is the final notation.
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
letter = "A" | "B" | "C" | "D" | "E" | "F" | "G"
| "H" | "I" | "J" | "K" | "L" | "M" | "N"
| "O" | "P" | "Q" | "R" | "S" | "T" | "U"
| "V" | "W" | "X" | "Y" | "Z" | "a" | "b"
| "c" | "d" | "e" | "f" | "g" | "h" | "i"
| "j" | "k" | "l" | "m" | "n" | "o" | "p"
| "q" | "r" | "s" | "t" | "u" | "v" | "w"
| "x" | "y" | "z" ;
srchar = letter | digit | "_" ;
srname = srchar, srchar, { srchar } ;
negsep = "-" | "," ;
possep = "+" | "," ;
srneglist = srname, { negsep, srname } ;
srposlist = srname, { possep, srname } ;
subreddit = srposlist | 'all', [ ":", category ], [ '-', srneglist ] ;
What category can be equal to is listed in the next section
Subreddit Categories
Subreddit Categories are based what TSB modules a subreddit can have enabled. If a subreddit has a module enabled, then it is to be considered in that category. If it does not have a module enabled, then it is to be considered not in that category.
"all": Subreddit categories can be used to modify the "all" keyword, which, on
its own, results in all the subreddits you mod that have TheSentinelBot.
For example, all:modmail results in all subreddits you mod that have
"Modmail Logging" enabled.
Another example, all:tsb-aww results in all subreddits you mod that have
"Sentinel" enabled, except /r/aww.
Here is a list of all the category types currently available:
sentinel; aliases:tsb,thesentinelmodlog; aliases:log,logsmodmail; aliases: nonebotban; aliases:botban,userbandomainblacklist; aliases:domain,domains,domainbandirtbag; aliases: none
Valid Examples:
aww: just /r/awwaww,DestinyTheGame,videos: /r/aww, /r/DestinyTheGame, and /r/videosaww+DestinyTheGame+videos: same as aboveaww+DestinyTheGame,videos: same as aboveaww,DestinyTheGame+videos: same as aboveall: all subreddits you mod that have TSB (TSB subreddits)all-aww: all subreddits you mod except for /r/awwall-aww,DestinyTheGame,videos: all TSB subreddits you mod except for /r/aww, /r/DestinyTheGame, and /r/videosall-aww-DestinyTheGame-videos: same as aboveall-aww-DestinyTheGame,videos: same as aboveall-aww,DestinyTheGame-videos: same as aboveall:modlog: all TSB subreddits you mod that have mod action logging enabledall:modlog-aww: all TSB subreddits you mod that have mod action logging enabled except for /r/awwall:modlog-aww,DestinyTheGame,videos: all TSB subreddits you mod that have mod action logging enabled except for /r/aww, /r/DestinyTheGame, and /r/videosall:logs-aww-DestinyTheGame-videos: same as above
Invalid Examples:
These examples are examples of invalid syntax that may cause an error (SR_INVALID) when used:
aww-DestinyTheGame: cannot subtract two subreddits.all+aww: cannot use concatenation in conjunction with "all".all,aww: same as above.all-aww+DestinyTheGame: cannot use+in conjunction withall.all:modlog,aww: cannot use concatenation in conjunction will categorized "all".all:modlog+aww: same as above.
Mod Action Types
banuserunbanusermuteuserunmuteuseraddcontributorremovecontributorapprovelinkremovelinkapprovecommentremovecommentspamlinkspamcommentinvitemoderatoruninvitemoderatoracceptmoderatorinviteaddmoderatorremovemoderatorsetpermissionsdistinguish
editsettingscreateruledeleteruleeditrulereorderrulescommunity_stylingcommunity_widgetsmodmail_enrollmentlockunlockstickyunstickyignorereportsunignorereportsspoilerunspoilermarknsfwsetsuggestedsortsetcontestmode
unsetcontestmodemarkoriginalcontentwikibannedwikicontributorwikiunbannedwikipagelistedremovewikicontributorwikirevisewikipermleveleditflaircreate_awarddisable_awarddelete_awardmod_award_givencollectionsadd_community_topicsremove_community_topicsevents