Skip to main content

Class: Collection

Implements#

  • Deletable

Properties#

author#

• author: User

Defined in: objects/collection/index.ts:21


created#

• created: Date

Defined in: objects/collection/index.ts:18


description#

• description: string

Defined in: objects/collection/index.ts:12


id#

• id: string

Defined in: objects/collection/index.ts:9


r#

• r: Reddit

Defined in: objects/collection/index.ts:8


submissions#

• submissions: Submission[]

Defined in: objects/collection/index.ts:16


subreddit#

• subreddit: Subreddit

Defined in: objects/collection/index.ts:22


title#

• title: string

Defined in: objects/collection/index.ts:11


updated#

• updated: Date

Defined in: objects/collection/index.ts:19


url#

• url: string

Defined in: objects/collection/index.ts:14

Methods#

addSubmission#

â–¸ addSubmission(submission: Submission): Promise<void>

Parameters#

NameType
submissionSubmission

Returns: Promise<void>

Defined in: objects/collection/index.ts:60


delete#

â–¸ delete(): Promise<void>

Returns: Promise<void>

Implementation of: Deletable.delete

Defined in: objects/collection/index.ts:74


follow#

â–¸ follow(follow: boolean): Promise<void>

Parameters#

NameType
followboolean

Returns: Promise<void>

Defined in: objects/collection/index.ts:81


removeSubmission#

â–¸ removeSubmission(submission: Submission): Promise<void>

Parameters#

NameType
submissionSubmission

Returns: Promise<void>

Defined in: objects/collection/index.ts:67


updateDescription#

â–¸ updateDescription(description: string): Promise<void>

Parameters#

NameType
descriptionstring

Returns: Promise<void>

Defined in: objects/collection/index.ts:52


updateTitle#

â–¸ updateTitle(title: string): Promise<void>

Parameters#

NameType
titlestring

Returns: Promise<void>

Defined in: objects/collection/index.ts:44