Skip to content

export Class

PollAnswers ​

Constructor ​

ts
new PollAnswers( options )
ParameterTypeDescription
optionsPollOption[]

Properties ​

records : Object ​

Methods ​

answered( id, user_id ) ​

Checks if the user has answered an answer with the id.

ParameterTypeDescription
idnumberThe id of the answer.
user_idnumberThe id of the user to check.

Returns: boolean

update( user_id, ids ) ​

Updates the answers of a user.

ParameterTypeDescription
user_idnumberThe id of the user.
idsnumber[]The ids of the answers of the users.

Returns: void