Class: Subreddit
#
HierarchyFeed
↳ Subreddit
↳↳ FullSubreddit
#
Implements- Fetchable<FullSubreddit>
#
Properties#
[nameSymbol]• [nameSymbol]: string
Inherited from: Feed.__@nameSymbol@4220
Defined in: objects/subreddit/feed.ts:12
#
name• name: string
Defined in: objects/subreddit/small.ts:36
#
r• r: Reddit
Inherited from: Feed.r
Defined in: objects/subreddit/feed.ts:10
#
Accessors#
key• get key(): string
Returns: string
Defined in: objects/subreddit/small.ts:37
#
url• get url(): string
Returns: string
Defined in: objects/subreddit/small.ts:48
#
Methods#
banâ–¸ ban(user
: User, options?
: BanOptions): Promise<void>
#
ParametersName | Type | Default value |
---|---|---|
user | User | - |
options | BanOptions | {} |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:222
#
controversialâ–¸ controversial(options?
: TimeOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | TimeOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: Feed.controversial
Defined in: objects/subreddit/feed.ts:60
#
fetchâ–¸ fetch(): Promise<FullSubreddit>
Returns: Promise<FullSubreddit>
Implementation of: Fetchable.fetch
Defined in: objects/subreddit/small.ts:64
#
hotâ–¸ hot(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: Feed.hot
Defined in: objects/subreddit/feed.ts:19
#
inviteModeratorâ–¸ inviteModerator(user
: User, permissions?
: ModPermission[]): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
permissions? | ModPermission[] |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:146
#
isRealâ–¸ isReal(): boolean
Returns: boolean
Defined in: objects/subreddit/small.ts:52
#
joinâ–¸ join(join?
: boolean): Promise<void>
#
ParametersName | Type | Default value |
---|---|---|
join | boolean | true |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:251
#
moderatorsâ–¸ moderators(): Promise<ModRelation[]>
Returns: Promise<ModRelation[]>
Defined in: objects/subreddit/small.ts:128
#
muteâ–¸ mute(user
: User): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:200
#
newâ–¸ new(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: Feed.new
Defined in: objects/subreddit/feed.ts:29
#
randomSubmissionâ–¸ randomSubmission(): Promise<FullSubmission>
Returns: Promise<FullSubmission>
Defined in: objects/subreddit/small.ts:345
#
removeModeratorâ–¸ removeModerator(user
: User): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:189
#
removeModeratorInviteâ–¸ removeModeratorInvite(user
: User): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:178
#
requirementsâ–¸ requirements(): Promise<Requirements>
Returns: Promise<Requirements>
Defined in: objects/subreddit/small.ts:271
#
risingâ–¸ rising(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: Feed.rising
Defined in: objects/subreddit/feed.ts:51
#
rulesâ–¸ rules(): Promise<Rule[]>
Returns: Promise<Rule[]>
Defined in: objects/subreddit/small.ts:262
#
searchSubmissionâ–¸ searchSubmission(query
: string, options?
: SubmissionSearchOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
query | string |
options? | SubmissionSearchOptions |
Returns: Promise<Page<FullSubmission, any>>
Defined in: objects/subreddit/small.ts:353
#
setModeratorPermissionsâ–¸ setModeratorPermissions(user
: User, permissions
: ModPermission[]): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
permissions | ModPermission[] |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:164
#
stickyâ–¸ sticky(num?
: 1
| 2
): Promise<FullSubmission>
#
ParametersName | Type | Default value |
---|---|---|
num | 1 | 2 | 1 |
Returns: Promise<FullSubmission>
Defined in: objects/subreddit/small.ts:337
#
styleâ–¸ style(): Promise<Style>
Get structured subreddit styles
Returns: Promise<Style>
Defined in: objects/subreddit/small.ts:103
#
stylesheetâ–¸ stylesheet(): Promise<string>
Returns: Promise<string>
Defined in: objects/subreddit/small.ts:71
#
submissionsStreamâ–¸ submissionsStream(options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Inherited from: Feed.submissionsStream
Defined in: objects/subreddit/feed.ts:73
#
submitCrosspostâ–¸ submitCrosspost(title
: string, submission
: Submission, options?
: NewSubmissionOptions): Promise<Submission>
#
ParametersName | Type |
---|---|
title | string |
submission | Submission |
options? | NewSubmissionOptions |
Returns: Promise<Submission>
Defined in: objects/subreddit/small.ts:416
#
submitLinkâ–¸ submitLink(title
: string, url
: string, options?
: NewSubmissionOptions): Promise<Submission>
#
ParametersName | Type |
---|---|
title | string |
url | string |
options? | NewSubmissionOptions |
Returns: Promise<Submission>
Defined in: objects/subreddit/small.ts:369
#
submitMediaâ–¸ submitMedia(title
: string, file
: Stream, name
: string, mimetype
: string, options?
: NewSubmissionOptions): Promise<Submission>
#
ParametersName | Type |
---|---|
title | string |
file | Stream |
name | string |
mimetype | string |
options? | NewSubmissionOptions |
Returns: Promise<Submission>
Defined in: objects/subreddit/small.ts:387
#
submitPollâ–¸ submitPoll(title
: string, body
: undefined | string, items
: string[], duration
: number, options?
: NewSubmissionOptions): Promise<Submission>
#
ParametersName | Type |
---|---|
title | string |
body | undefined | string |
items | string[] |
duration | number |
options? | NewSubmissionOptions |
Returns: Promise<Submission>
Defined in: objects/subreddit/small.ts:399
#
submitTextâ–¸ submitText(title
: string, body?
: string, options?
: NewSubmissionOptions): Promise<Submission>
#
ParametersName | Type |
---|---|
title | string |
body? | string |
options? | NewSubmissionOptions |
Returns: Promise<Submission>
Defined in: objects/subreddit/small.ts:378
#
topâ–¸ top(options?
: TimeOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | TimeOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: Feed.top
Defined in: objects/subreddit/feed.ts:38
#
trafficâ–¸ traffic(): Promise<Traffics>
Returns: Promise<Traffics>
Defined in: objects/subreddit/small.ts:304
#
unbanâ–¸ unban(user
: User): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:240
#
unmuteâ–¸ unmute(user
: User): Promise<void>
#
ParametersName | Type |
---|---|
user | User |
Returns: Promise<void>
Defined in: objects/subreddit/small.ts:211
#
widgetsâ–¸ widgets(): Promise<Widgets>
Returns: Promise<Widgets>
Defined in: objects/subreddit/small.ts:79