Skip to main content

Reply

Defined in: src/lib/messages/Reply.ts:13

Extends

Implements

Constructors

new Reply()

new Reply(data?): Reply

Defined in: src/lib/Wrapper.ts:36

Creates a new class instance

Parameters

data?

IBaseMessage

Returns

Reply

Inherited from

BaseMessage.constructor

new Reply()

new Reply(client, data?): Reply

Defined in: src/lib/Wrapper.ts:37

Parameters

client

Client

data?

IBaseMessage

Returns

Reply

Inherited from

BaseMessage.constructor

Properties

author?

readonly optional author: User

Defined in: src/lib/messages/BaseMessage.ts:34

Implementation of

IReply.author

Inherited from

BaseMessage.author


byVideoAuthor?

readonly optional byVideoAuthor: boolean

Defined in: src/lib/messages/BaseMessage.ts:74

Raw

FeedbackSchemaBase.fromVideoAuthor

Implementation of

IReply.byVideoAuthor

Inherited from

BaseMessage.byVideoAuthor


client?

optional client: Client

Defined in: src/lib/Wrapper.ts:15

The client that this base was fetched with.

Inherited from

BaseMessage.client


created?

readonly optional created: Date

Defined in: src/lib/messages/BaseMessage.ts:39

Raw

FeedbackSchemaBase.date

Implementation of

IReply.created

Inherited from

BaseMessage.created


deleted?

readonly optional deleted: boolean

Defined in: src/lib/messages/BaseMessage.ts:53

Raw

FeedbackSchemaBase.appearsAsDeleted

Implementation of

IReply.deleted

Inherited from

BaseMessage.deleted


encryptedKey?

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

Defined in: src/lib/messages/BaseMessage.ts:48

Raw

FeedbackSchemaBase.key

Implementation of

IReply.encryptedKey

Inherited from

BaseMessage.encryptedKey


key?

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

Defined in: src/lib/messages/BaseMessage.ts:44

Raw

FeedbackSchemaBase.expandKey

Implementation of

IReply.key

Inherited from

BaseMessage.key


locked?

readonly optional locked: boolean

Defined in: src/lib/messages/BaseMessage.ts:57

Raw

FeedbackSchemaBase.isLocked

Implementation of

IReply.locked

Inherited from

BaseMessage.locked


message?

readonly optional message: Message

Defined in: src/lib/messages/Reply.ts:14

Implementation of

IReply.message


pinned?

readonly optional pinned: boolean

Defined in: src/lib/messages/BaseMessage.ts:61

Raw

FeedbackSchemaBase.isPinned

Implementation of

IReply.pinned

Inherited from

BaseMessage.pinned


program?

readonly optional program: Program

Defined in: src/lib/messages/BaseMessage.ts:35

Implementation of

IReply.program

Inherited from

BaseMessage.program


rawData?

optional rawData: RecursivePartial<FeedbackSchemaBase>

Defined in: src/lib/Wrapper.ts:22

The raw base schema data

Remarks

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

Inherited from

BaseMessage.rawData


score?

readonly optional score: number

Defined in: src/lib/messages/BaseMessage.ts:69

Raw

FeedbackSchemaBase.lowQualityScore

Implementation of

IReply.score

Inherited from

BaseMessage.score


selfFlagged?

readonly optional selfFlagged: boolean

Defined in: src/lib/messages/BaseMessage.ts:79

Raw

FeedbackSchemaBase.flaggedByUser

Implementation of

IReply.selfFlagged

Inherited from

BaseMessage.selfFlagged


text?

readonly optional text: string

Defined in: src/lib/messages/BaseMessage.ts:33

Raw

FeedbackSchemaBase.content

Implementation of

IReply.text

Inherited from

BaseMessage.text


verified?

readonly optional verified: boolean

Defined in: src/lib/messages/BaseMessage.ts:65

Raw

FeedbackSchemaBase.definitelyNotSpam

Implementation of

IReply.verified

Inherited from

BaseMessage.verified

Accessors

bySelf

Get Signature

get bySelf(): boolean

Defined in: src/lib/messages/BaseMessage.ts:84

Checks if the message was written by the client user

Returns

boolean

Inherited from

BaseMessage.bySelf


url

Get Signature

get url(): null | string

Defined in: src/lib/messages/BaseMessage.ts:88

Returns

null | string

Inherited from

BaseMessage.url

Methods

byUser()

byUser(user): boolean

Defined in: src/lib/messages/BaseMessage.ts:138

Checks if the message was written by the given user

Parameters

user

User

Returns

boolean

Inherited from

BaseMessage.byUser


copy()

copy(reply): Reply

Defined in: src/lib/messages/Reply.ts:48

Updates data into the class

Parameters

reply

IReply

Returns

Reply

The class instance

Overrides

BaseMessage.copy


copyFromSchema()

copyFromSchema(schema): Reply

Defined in: src/lib/messages/Reply.ts:58

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


get()

get(client): Promise<Reply>

Defined in: src/lib/messages/Reply.ts:62

Gets and updates the instance's data

Parameters

client

Client = ...

The API client to use

Returns

Promise<Reply>

Overrides

BaseMessage.get


is()

is(message): boolean

Defined in: src/lib/messages/BaseMessage.ts:145

Checks if the message is the same as the given message

Parameters

message

IBaseMessage | BaseMessage

Returns

boolean

Inherited from

BaseMessage.is


isSchema()

isSchema(schema): boolean

Defined in: src/lib/Wrapper.ts:88

Checks if the schema represents the same instance

Parameters

schema

RecursivePartial<FeedbackSchemaBase>

Returns

boolean

Inherited from

BaseMessage.isSchema


transformSchema()

transformSchema(schema): IReply

Defined in: src/lib/messages/Reply.ts:32

Transforms a API schema into an abstracted interface

Parameters

schema

RecursivePartial<BasicFeedbackSchema>

The schema to transform

Returns

IReply

Overrides

BaseMessage.transformSchema


fromIdentifier()

static fromIdentifier(identifier): Reply

Defined in: src/lib/messages/Reply.ts:23

Parameters

identifier

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

Returns

Reply


fromSchema()

static fromSchema(schema): Reply

Defined in: src/lib/messages/Reply.ts:16

Parameters

schema

RecursivePartial<BasicFeedbackSchema>

Returns

Reply