Skip to main content

Reply

Extends

Implements

Constructors

new Reply()

new Reply(data?): Reply

Creates a new class instance

Parameters

data?: IBaseMessage

Returns

Reply

Inherited from

BaseMessage.constructor

Source

src/lib/Wrapper.ts:36

new Reply()

new Reply(client, data?): Reply

Parameters

client: Client

data?: IBaseMessage

Returns

Reply

Inherited from

BaseMessage.constructor

Source

src/lib/Wrapper.ts:37

Properties

author?

optional readonly author: User

Implementation of

IReply.author

Inherited from

BaseMessage.author

Source

src/lib/messages/BaseMessage.ts:34


byVideoAuthor?

optional readonly byVideoAuthor: boolean

Raw

FeedbackSchemaBase.fromVideoAuthor

Implementation of

IReply.byVideoAuthor

Inherited from

BaseMessage.byVideoAuthor

Source

src/lib/messages/BaseMessage.ts:74


client?

optional client: Client

The client that this base was fetched with.

Inherited from

BaseMessage.client

Source

src/lib/Wrapper.ts:15


created?

optional readonly created: Date

Raw

FeedbackSchemaBase.date

Implementation of

IReply.created

Inherited from

BaseMessage.created

Source

src/lib/messages/BaseMessage.ts:39


deleted?

optional readonly deleted: boolean

Raw

FeedbackSchemaBase.appearsAsDeleted

Implementation of

IReply.deleted

Inherited from

BaseMessage.deleted

Source

src/lib/messages/BaseMessage.ts:53


encryptedKey?

optional readonly encryptedKey: `kaencrypted_${string}_${string}`

Raw

FeedbackSchemaBase.key

Implementation of

IReply.encryptedKey

Inherited from

BaseMessage.encryptedKey

Source

src/lib/messages/BaseMessage.ts:48


key?

optional readonly key: `ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}`

Raw

FeedbackSchemaBase.expandKey

Implementation of

IReply.key

Inherited from

BaseMessage.key

Source

src/lib/messages/BaseMessage.ts:44


locked?

optional readonly locked: boolean

Raw

FeedbackSchemaBase.isLocked

Implementation of

IReply.locked

Inherited from

BaseMessage.locked

Source

src/lib/messages/BaseMessage.ts:57


message?

optional readonly message: Message

Implementation of

IReply.message

Source

src/lib/messages/Reply.ts:14


pinned?

optional readonly pinned: boolean

Raw

FeedbackSchemaBase.isPinned

Implementation of

IReply.pinned

Inherited from

BaseMessage.pinned

Source

src/lib/messages/BaseMessage.ts:61


program?

optional readonly program: Program

Implementation of

IReply.program

Inherited from

BaseMessage.program

Source

src/lib/messages/BaseMessage.ts:35


rawData?

optional rawData: RecursivePartial<FeedbackSchemaBase>

The raw base schema data

Remarks

Only set if the base was created from a user schema.

Inherited from

BaseMessage.rawData

Source

src/lib/Wrapper.ts:22


score?

optional readonly score: number

Raw

FeedbackSchemaBase.lowQualityScore

Implementation of

IReply.score

Inherited from

BaseMessage.score

Source

src/lib/messages/BaseMessage.ts:69


selfFlagged?

optional readonly selfFlagged: boolean

Raw

FeedbackSchemaBase.flaggedByUser

Implementation of

IReply.selfFlagged

Inherited from

BaseMessage.selfFlagged

Source

src/lib/messages/BaseMessage.ts:79


text?

optional readonly text: string

Raw

FeedbackSchemaBase.content

Implementation of

IReply.text

Inherited from

BaseMessage.text

Source

src/lib/messages/BaseMessage.ts:33


verified?

optional readonly verified: boolean

Raw

FeedbackSchemaBase.definitelyNotSpam

Implementation of

IReply.verified

Inherited from

BaseMessage.verified

Source

src/lib/messages/BaseMessage.ts:65

Accessors

bySelf

get bySelf(): boolean

Checks if the message was written by the client user

Returns

boolean

Source

src/lib/messages/BaseMessage.ts:84


url

get url(): null | string

Returns

null | string

Source

src/lib/messages/BaseMessage.ts:88

Methods

byUser()

byUser(user): boolean

Checks if the message was written by the given user

Parameters

user: User

Returns

boolean

Inherited from

BaseMessage.byUser

Source

src/lib/messages/BaseMessage.ts:138


copy()

copy(reply): Reply

Updates data into the class

Parameters

reply: IReply

The data to copy from

Returns

Reply

The class instance

Overrides

BaseMessage.copy

Source

src/lib/messages/Reply.ts:48


copyFromSchema()

copyFromSchema(schema): Reply

Updates data from a schema into the instance

Parameters

schema: RecursivePartial<BasicFeedbackSchema>

The schema to copy from

Returns

Reply

The class instance

Overrides

BaseMessage.copyFromSchema

Source

src/lib/messages/Reply.ts:58


get()

get(client): Promise<Reply>

Gets and updates the instance's data

Parameters

client: Client= undefined

The API client to use

Returns

Promise<Reply>

Overrides

BaseMessage.get

Source

src/lib/messages/Reply.ts:62


is()

is(message): boolean

Checks if the message is the same as the given message

Parameters

message: IBaseMessage | BaseMessage

Returns

boolean

Inherited from

BaseMessage.is

Source

src/lib/messages/BaseMessage.ts:145


isSchema()

isSchema(schema): boolean

Checks if the schema represents the same instance

Parameters

schema: RecursivePartial<FeedbackSchemaBase>

Returns

boolean

Inherited from

BaseMessage.isSchema

Source

src/lib/Wrapper.ts:88


transformSchema()

transformSchema(schema): IReply

Parameters

schema: RecursivePartial<BasicFeedbackSchema>

Returns

IReply

Overrides

BaseMessage.transformSchema

Source

src/lib/messages/Reply.ts:32


fromIdentifier()

static fromIdentifier(identifier): Reply

Parameters

identifier: `ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}` | `kaencrypted_${string}_${string}`

Returns

Reply

Source

src/lib/messages/Reply.ts:23


fromSchema()

static fromSchema(schema): Reply

Parameters

schema: RecursivePartial<BasicFeedbackSchema>

Returns

Reply

Source

src/lib/messages/Reply.ts:16