Class: User
#
HierarchyUser
↳ FullUser
↳ Self
↳ SubmissionUser
#
Implements- Fetchable<FullUser>
#
Properties#
name• name: string
Defined in: objects/user/small.ts:16
#
r• r: Reddit
Defined in: objects/user/small.ts:14
#
Accessors#
key• get key(): string
Returns: string
Defined in: objects/user/small.ts:17
#
url• get url(): string
Returns: string
Defined in: objects/user/small.ts:31
#
Methods#
commentsâ–¸ comments(options?
: GetOptions): Promise<Page<FullComment, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullComment, any>>
Defined in: objects/user/small.ts:116
#
commentsStreamâ–¸ commentsStream(options?
: StreamOptions): AsyncIterator<FullComment, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullComment, any, undefined>
Defined in: objects/user/small.ts:125
#
fetchâ–¸ fetch(): Promise<FullUser>
Returns: Promise<FullUser>
Implementation of: Fetchable.fetch
Defined in: objects/user/small.ts:35
#
friendâ–¸ friend(friend?
: boolean, note?
: string): Promise<void>
#
ParametersName | Type | Default value |
---|---|---|
friend | boolean | true |
note? | string | - |
Returns: Promise<void>
Defined in: objects/user/small.ts:58
#
givePremiumâ–¸ givePremium(months
: number): Promise<void>
#
ParametersName | Type |
---|---|
months | number |
Returns: Promise<void>
Defined in: objects/user/small.ts:49
#
isâ–¸ is(u
: User): boolean
#
ParametersName | Type |
---|---|
u | User |
Returns: boolean
Defined in: objects/user/small.ts:27
#
multisâ–¸ multis(): Promise<Multi[]>
Returns: Promise<Multi[]>
Defined in: objects/user/small.ts:91
#
nameAvailableâ–¸ nameAvailable(): Promise<boolean>
Returns: Promise<boolean>
Defined in: objects/user/small.ts:42
#
sendMessageâ–¸ sendMessage(subject
: string, body
: string): Promise<void>
#
ParametersName | Type |
---|---|
subject | string |
body | string |
Returns: Promise<void>
Defined in: objects/user/small.ts:134
#
submissionsâ–¸ submissions(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Defined in: objects/user/small.ts:98
#
submissionsStreamâ–¸ submissionsStream(options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Defined in: objects/user/small.ts:107
#
trophiesâ–¸ trophies(): Promise<Trophy[]>
Returns: Promise<Trophy[]>
Defined in: objects/user/small.ts:83