Skip to main content

Class: SubmissionUser

Hierarchy#

  • User

    ↳ SubmissionUser

Properties#

flair#

• flair: null | Flair

Defined in: objects/user/submission.ts:11


fullId#

• fullId: string

Defined in: objects/user/submission.ts:7


id#

• id: string

Defined in: objects/user/submission.ts:6


name#

• name: string

Inherited from: User.name

Defined in: objects/user/small.ts:16


premium#

• premium: boolean

Defined in: objects/user/submission.ts:9


r#

• r: Reddit

Inherited from: User.r

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>>

Parameters#

NameType
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>

Parameters#

NameType
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>

Parameters#

NameTypeDefault value
friendbooleantrue
note?string-

Returns: Promise<void>

Inherited from: User

Defined in: objects/user/small.ts:58


givePremium#

â–¸ givePremium(months: number): Promise<void>

Parameters#

NameType
monthsnumber

Returns: Promise<void>

Inherited from: User

Defined in: objects/user/small.ts:49


is#

â–¸ is(u: User): boolean

Parameters#

NameType
uUser

Returns: boolean

Inherited from: User

Defined in: objects/user/small.ts:27


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


sendMessage#

â–¸ sendMessage(subject: string, body: string): Promise<void>

Parameters#

NameType
subjectstring
bodystring

Returns: Promise<void>

Inherited from: User

Defined in: objects/user/small.ts:134


submissions#

â–¸ submissions(options?: GetOptions): Promise<Page<FullSubmission, any>>

Parameters#

NameType
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>

Parameters#

NameType
options?StreamOptions

Returns: AsyncIterator<FullSubmission, any, undefined>

Inherited from: User

Defined in: objects/user/small.ts:107


trophies#

â–¸ trophies(): Promise<Trophy[]>

Returns: Promise<Trophy[]>

Inherited from: User

Defined in: objects/user/small.ts:83