Add voting on polls

master
John Montagu, the 4th Earl of Sandvich 2024-06-18 22:16:20 -07:00
parent 0ea2058a7c
commit d1be4ebec4
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 12 additions and 1 deletions

View File

@ -19,6 +19,17 @@ export class AnswerModule extends Module {
questionId,
action: action as string,
}
)
);
}
public async pollVote(questionId: number, optionNum: number) {
return await this.client._call(
TCResponse,
"answer.pollvote",
{
questionId,
optionNum,
}
);
}
}