mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 15:22:43 +00:00
fix: poll answer id should never be 0
This commit is contained in:
1 parent
3896b143c6
commit
305d1d87b2
1 file changed
+1
-1
@@ -495,7 +495,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
||||
|
||||
if (opts.poll?.answers) {
|
||||
for (let i = 0; i < opts.poll.answers.length; i++) {
|
||||
message.poll.answers[i].answer_id = i;
|
||||
message.poll.answers[i].answer_id = i + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user