Question
Defined in: src/lib/messages/Question.ts:20
Remarks
Note that Help Requests are a type of Question.
Raw
Extends
Implements
Constructors
new Question()
new Question(
data
?):Question
Defined in: src/lib/Wrapper.ts:36
Creates a new class instance
Parameters
data?
Returns
Inherited from
new Question()
new Question(
client
,data
?):Question
Defined in: src/lib/Wrapper.ts:37
Parameters
client
data?
Returns
Inherited from
Properties
answerCount?
readonly
optional
answerCount:number
Defined in: src/lib/messages/Question.ts:21
Implementation of
answers?
readonly
optional
answers:Answer
[]
Defined in: src/lib/messages/Question.ts:22
Implementation of
author?
readonly
optional
author:User
Defined in: src/lib/messages/BaseMessage.ts:34
Implementation of
Inherited from
byVideoAuthor?
readonly
optional
byVideoAuthor:boolean
Defined in: src/lib/messages/BaseMessage.ts:74
Raw
FeedbackSchemaBase.fromVideoAuthor
Implementation of
Inherited from
client?
optional
client:Client
Defined in: src/lib/Wrapper.ts:15
The client that this base was fetched with.
Inherited from
created?
readonly
optional
created:Date
Defined in: src/lib/messages/BaseMessage.ts:39
Raw
Implementation of
Inherited from
deleted?
readonly
optional
deleted:boolean
Defined in: src/lib/messages/BaseMessage.ts:53
Raw
FeedbackSchemaBase.appearsAsDeleted
Implementation of
Inherited from
encryptedKey?
readonly
optional
encryptedKey:`kaencrypted_${string}_${string}`
Defined in: src/lib/messages/BaseMessage.ts:48
Raw
Implementation of
Inherited from
key?
readonly
optional
key:`ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}`
Defined in: src/lib/messages/BaseMessage.ts:44
Raw
Implementation of
Inherited from
locked?
readonly
optional
locked:boolean
Defined in: src/lib/messages/BaseMessage.ts:57
Raw
Implementation of
Inherited from
old?
readonly
optional
old:boolean
Defined in: src/lib/messages/Question.ts:26
Raw
Implementation of
pinned?
readonly
optional
pinned:boolean
Defined in: src/lib/messages/BaseMessage.ts:61
Raw
Implementation of
Inherited from
program?
readonly
optional
program:Program
Defined in: src/lib/messages/BaseMessage.ts:35
Implementation of
Inherited from
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
replies?
readonly
optional
replies:Reply
[]
Defined in: src/lib/messages/Message.ts:50
Implementation of
Inherited from
replyCount?
readonly
optional
replyCount:number
Defined in: src/lib/messages/Message.ts:49
Implementation of
Inherited from
score?
readonly
optional
score:number
Defined in: src/lib/messages/BaseMessage.ts:69
Raw
FeedbackSchemaBase.lowQualityScore
Implementation of
Inherited from
selfDownvoted?
readonly
optional
selfDownvoted:boolean
Defined in: src/lib/messages/Message.ts:48
Raw
Implementation of
Inherited from
selfFlagged?
readonly
optional
selfFlagged:boolean
Defined in: src/lib/messages/BaseMessage.ts:79
Raw
FeedbackSchemaBase.flaggedByUser
Implementation of
Inherited from
selfUpvoted?
readonly
optional
selfUpvoted:boolean
Defined in: src/lib/messages/Message.ts:44
Raw
Implementation of
Inherited from
text?
readonly
optional
text:string
Defined in: src/lib/messages/BaseMessage.ts:33
Raw
Implementation of
Inherited from
verified?
readonly
optional
verified:boolean
Defined in: src/lib/messages/BaseMessage.ts:65
Raw
FeedbackSchemaBase.definitelyNotSpam
Implementation of
Inherited from
votes?
readonly
optional
votes:number
Defined in: src/lib/messages/Message.ts:40
Raw
FeedbackSchemaBase.sumVotesIncremented
Implementation of
Inherited from
Type
readonly
static
Type: 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(
question
):Question
Defined in: src/lib/messages/Question.ts:60
Updates data into the class
Parameters
question
Returns
The class instance
Overrides
copyFromSchema()
copyFromSchema(
schema
):Question
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
<Question
>
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
<Question
>
Inherited from
getAllReplies()
getAllReplies(
client
):Promise
<Question
>
Defined in: src/lib/messages/Message.ts:134
Parameters
client
Client
= ...
Returns
Promise
<Question
>
See
Inherited from
getReplies()
getReplies(
client
,limit
?):AsyncGenerator
<Reply
[],Question
,unknown
>
Defined in: src/lib/messages/Message.ts:118
Parameters
client
Client
= ...
limit?
number
Returns
AsyncGenerator
<Reply
[], Question
, 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
):IQuestion
Defined in: src/lib/messages/Question.ts:44
Transforms a API schema into an abstracted interface
Parameters
schema
RecursivePartial
<QuestionFeedbackSchema
>
The schema to transform
Returns
Overrides
fromIdentifier()
static
fromIdentifier(identifier
):Question
Defined in: src/lib/messages/Question.ts:35
Parameters
identifier
`ag5zfmtoYW4tYWNhZGVteX${string}CxIIVXNlckRhdGEi${string}thaWRf${string}${string}${string}`
| `kaencrypted_${string}_${string}`
Returns
Overrides
fromSchema()
static
fromSchema(schema
):Question
Defined in: src/lib/messages/Question.ts:28
Parameters
schema
RecursivePartial
<QuestionFeedbackSchema
>