Answer
Defined in: src/lib/messages/Answer.ts:16
Extends
Implements
Constructors
new Answer()
new Answer(
data?):Answer
Defined in: src/lib/Wrapper.ts:36
Creates a new class instance
Parameters
data?
Returns
Inherited from
new Answer()
new Answer(
client,data?):Answer
Defined in: src/lib/Wrapper.ts:37
Parameters
client
data?
Returns
Inherited from
Properties
author?
readonlyoptionalauthor:User
Defined in: src/lib/messages/BaseMessage.ts:34
Implementation of
Inherited from
byVideoAuthor?
readonlyoptionalbyVideoAuthor:boolean
Defined in: src/lib/messages/BaseMessage.ts:74
Raw
FeedbackSchemaBase.fromVideoAuthor
Implementation of
Inherited from
client?
optionalclient:Client
Defined in: src/lib/Wrapper.ts:15
The client that this base was fetched with.
Inherited from
created?
readonlyoptionalcreated:Date
Defined in: src/lib/messages/BaseMessage.ts:39
Raw
Implementation of
Inherited from
deleted?
readonlyoptionaldeleted:boolean
Defined in: src/lib/messages/BaseMessage.ts:53
Raw
FeedbackSchemaBase.appearsAsDeleted
Implementation of
Inherited from
encryptedKey?
readonlyoptionalencryptedKey:`kaencrypted_${string}_${string}`
Defined in: src/lib/messages/BaseMessage.ts:48
Raw
Implementation of
Inherited from
key?
readonlyoptionalkey:`ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}`
Defined in: src/lib/messages/BaseMessage.ts:44
Raw
Implementation of
Inherited from
locked?
readonlyoptionallocked:boolean
Defined in: src/lib/messages/BaseMessage.ts:57
Raw
Implementation of
Inherited from
pinned?
readonlyoptionalpinned:boolean
Defined in: src/lib/messages/BaseMessage.ts:61
Raw
Implementation of
Inherited from
program?
readonlyoptionalprogram:Program
Defined in: src/lib/messages/BaseMessage.ts:35
Implementation of
Inherited from
question?
readonlyoptionalquestion:Question
Defined in: src/lib/messages/Answer.ts:17
Implementation of
rawData?
optionalrawData: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
replies?
readonlyoptionalreplies:Reply[]
Defined in: src/lib/messages/Message.ts:50
Implementation of
Inherited from
replyCount?
readonlyoptionalreplyCount:number
Defined in: src/lib/messages/Message.ts:49
Implementation of
Inherited from
score?
readonlyoptionalscore:number
Defined in: src/lib/messages/BaseMessage.ts:69
Raw
FeedbackSchemaBase.lowQualityScore
Implementation of
Inherited from
selfDownvoted?
readonlyoptionalselfDownvoted:boolean
Defined in: src/lib/messages/Message.ts:48
Raw
Implementation of
Inherited from
selfFlagged?
readonlyoptionalselfFlagged:boolean
Defined in: src/lib/messages/BaseMessage.ts:79
Raw
FeedbackSchemaBase.flaggedByUser
Implementation of
Inherited from
selfUpvoted?
readonlyoptionalselfUpvoted:boolean
Defined in: src/lib/messages/Message.ts:44
Raw
Implementation of
Inherited from
text?
readonlyoptionaltext:string
Defined in: src/lib/messages/BaseMessage.ts:33
Raw
Implementation of
Inherited from
verified?
readonlyoptionalverified:boolean
Defined in: src/lib/messages/BaseMessage.ts:65
Raw
FeedbackSchemaBase.definitelyNotSpam
Implementation of
Inherited from
votes?
readonlyoptionalvotes:number
Defined in: src/lib/messages/Message.ts:40
Raw
FeedbackSchemaBase.sumVotesIncremented
Implementation of
Inherited from
Type
readonlystaticType: typeofMessageType=MessageType
Defined in: src/lib/messages/Message.ts:35
Aliases for the message types.
Inherited from
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
selfVoted
Get Signature
get selfVoted():
null|1|0|-1
Defined in: src/lib/messages/Message.ts:59
See
Returns
null | 1 | 0 | -1
1 if the message was upvoted by the user, -1 if it was downvoted,
and 0 if it was not voted on. null if the user is not logged in.
Inherited from
url
Get Signature
get url():
null|string
Defined in: src/lib/messages/BaseMessage.ts:88
Returns
null | string
Inherited from
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
Returns
boolean
Inherited from
copy()
copy(
answer):Answer
Defined in: src/lib/messages/Answer.ts:47
Updates data into the class
Parameters
answer
Returns
The class instance
Overrides
copyFromSchema()
copyFromSchema(
schema):Answer
Defined in: src/lib/Wrapper.ts:65
Updates data from a schema into the instance
Parameters
schema
RecursivePartial<FeedbackSchemaBase>
The schema to copy from
Returns
The class instance
Inherited from
get()
get(
client):Promise<Answer>
Defined in: src/lib/messages/Message.ts:109
Gets and updates the instance's data
Parameters
client
Client = ...
The API client to use
Returns
Promise<Answer>
Inherited from
getAllReplies()
getAllReplies(
client):Promise<Answer>
Defined in: src/lib/messages/Message.ts:134
Parameters
client
Client = ...
Returns
Promise<Answer>
See
Inherited from
getReplies()
getReplies(
client,limit?):AsyncGenerator<Reply[],Answer,unknown>
Defined in: src/lib/messages/Message.ts:118
Parameters
client
Client = ...
limit?
number
Returns
AsyncGenerator<Reply[], Answer, unknown>
See
Inherited from
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
Returns
boolean
Inherited from
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
transformSchema()
transformSchema(
schema):IAnswer
Defined in: src/lib/messages/Answer.ts:35
Transforms a API schema into an abstracted interface
Parameters
schema
RecursivePartial<AnswerFeedbackSchema>
The schema to transform
Returns
Overrides
fromIdentifier()
staticfromIdentifier(identifier):Answer
Defined in: src/lib/messages/Answer.ts:26
Parameters
identifier
`ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}` | `kaencrypted_${string}_${string}`
Returns
Overrides
fromSchema()
staticfromSchema(schema):Answer
Defined in: src/lib/messages/Answer.ts:19
Parameters
schema
RecursivePartial<AnswerFeedbackSchema>