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>
#
ParametersName | Type |
---|---|
submission | Submission |
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>
#
ParametersName | Type |
---|---|
follow | boolean |
Returns: Promise<void>
Defined in: objects/collection/index.ts:81
#
removeSubmissionâ–¸ removeSubmission(submission
: Submission): Promise<void>
#
ParametersName | Type |
---|---|
submission | Submission |
Returns: Promise<void>
Defined in: objects/collection/index.ts:67
#
updateDescriptionâ–¸ updateDescription(description
: string): Promise<void>
#
ParametersName | Type |
---|---|
description | string |
Returns: Promise<void>
Defined in: objects/collection/index.ts:52
#
updateTitleâ–¸ updateTitle(title
: string): Promise<void>
#
ParametersName | Type |
---|---|
title | string |
Returns: Promise<void>
Defined in: objects/collection/index.ts:44