Class: Self
#
Hierarchy↳ Self
#
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>>
Inherited from: User
Defined in: objects/user/small.ts:116
#
commentsStreamâ–¸ commentsStream(options?
: StreamOptions): AsyncIterator<FullComment, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullComment, any, undefined>
Inherited from: User
Defined in: objects/user/small.ts:125
#
fetchâ–¸ fetch(): Promise<FullUser>
Returns: Promise<FullUser>
Inherited from: User
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>
Inherited from: User
Defined in: objects/user/small.ts:58
#
friendsâ–¸ friends(): Promise<Relation[]>
Returns: Promise<Relation[]>
Defined in: objects/user/self/index.ts:30
#
givePremiumâ–¸ givePremium(months
: number): Promise<void>
#
ParametersName | Type |
---|---|
months | number |
Returns: Promise<void>
Inherited from: User
Defined in: objects/user/small.ts:49
#
hiddenâ–¸ hidden(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Defined in: objects/user/self/index.ts:116
#
hiddenStreamâ–¸ hiddenStream(options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Defined in: objects/user/self/index.ts:125
#
isâ–¸ is(u
: User): boolean
#
ParametersName | Type |
---|---|
u | User |
Returns: boolean
Inherited from: User
Defined in: objects/user/small.ts:27
#
messagesStreamâ–¸ messagesStream(options?
: StreamOptions): AsyncIterator<Message, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<Message, any, undefined>
Defined in: objects/user/self/index.ts:61
#
multisâ–¸ multis(): Promise<Multi[]>
Returns: Promise<Multi[]>
Inherited from: User
Defined in: objects/user/small.ts:91
#
nameAvailableâ–¸ nameAvailable(): Promise<boolean>
Returns: Promise<boolean>
Inherited from: User
Defined in: objects/user/small.ts:42
#
prefsâ–¸ prefs(): Promise<Preferences>
Returns: Promise<Preferences>
Defined in: objects/user/self/index.ts:134
#
savedâ–¸ saved(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Defined in: objects/user/self/index.ts:98
#
savedStreamâ–¸ savedStream(options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Defined in: objects/user/self/index.ts:107
#
sendMessageâ–¸ sendMessage(subject
: string, body
: string): Promise<void>
#
ParametersName | Type |
---|---|
subject | string |
body | string |
Returns: Promise<void>
Inherited from: User
Defined in: objects/user/small.ts:134
#
submissionsâ–¸ submissions(options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Inherited from: User
Defined in: objects/user/small.ts:98
#
submissionsStreamâ–¸ submissionsStream(options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Inherited from: User
Defined in: objects/user/small.ts:107
#
subredditsâ–¸ subreddits(options?
: GetOptions): Promise<Page<FullSubreddit, any>>
#
ParametersName | Type |
---|---|
options? | GetOptions |
Returns: Promise<Page<FullSubreddit, any>>
Defined in: objects/user/self/index.ts:41
#
subredditsStreamâ–¸ subredditsStream(options?
: StreamOptions): AsyncIterator<FullSubreddit, any, undefined>
#
ParametersName | Type |
---|---|
options? | StreamOptions |
Returns: AsyncIterator<FullSubreddit, any, undefined>
Defined in: objects/user/self/index.ts:51
#
trophiesâ–¸ trophies(): Promise<Trophy[]>
Returns: Promise<Trophy[]>
Inherited from: User
Defined in: objects/user/small.ts:83
#
updatePrefsâ–¸ updatePrefs(prefs
: Optional<Preferences>): Promise<void>
#
ParametersName | Type |
---|---|
prefs | Optional<Preferences> |
Returns: Promise<void>
Defined in: objects/user/self/index.ts:225
#
votedâ–¸ voted(dir
: 1
| -1
, options?
: GetOptions): Promise<Page<FullSubmission, any>>
#
ParametersName | Type |
---|---|
dir | 1 | -1 |
options? | GetOptions |
Returns: Promise<Page<FullSubmission, any>>
Defined in: objects/user/self/index.ts:71
#
votedStreamâ–¸ votedStream(dir
: 1
| -1
, options?
: StreamOptions): AsyncIterator<FullSubmission, any, undefined>
#
ParametersName | Type |
---|---|
dir | 1 | -1 |
options? | StreamOptions |
Returns: AsyncIterator<FullSubmission, any, undefined>
Defined in: objects/user/self/index.ts:83