ENUM

VoteInPollErrorCode

Vote in poll error code.

link GraphQL Schema definition

1enum VoteInPollErrorCode {
2
3# User tried to vote in a poll that doesn't exist i.e. there is no poll running at
4# all).
5POLL_NOT_FOUND
6
7# User tried to vote in a poll that is not active.
8POLL_NOT_ACTIVE
9
10# Request has a vote ID that is in progress or has already been submitted.
11VOTE_ID_CONFLICT
12
13# User is trying to vote for another choice in a poll that only allows one choice.
14MULTI_CHOICE_VOTE_FORBIDDEN
15
16# Request is for a channel ID that is invalid (e.g. banned channel, channel
17# doesn't exist).
18INVALID_CHANNEL_ID
19
20# Request is for a choice index that is invalid (e.g. there are 3 choices and the
21# request is for index 10).
22INVALID_CHOICE_INDEX
23
24# Request is for a choice ID that invalid.
25INVALID_CHOICE_ID
26
27# Request is for an invalid bits amount (e.g. -100 bits, or request is not for a
28# multiple of the Bits cost).
29INVALID_BITS_AMOUNT
30
31# Request is for an invalid Community Points amount (e.g. -100 Points, or request
32# is not for a multiple of the Points cost).
33INVALID_COMMUNITY_POINTS_AMOUNT
34
35# User's bits balance is too low to perform request (e.g. they only have 10 bits
36# and they request to spend 100).
37INSUFFICIENT_BITS_BALANCE
38
39# Users's Community Points balance is too low to perform request (e.g. they only
40# have 10 points and they request to spend 100).
41INSUFFICIENT_COMMUNITY_POINTS_BALANCE
42
43# User has already used their base votes, so in order to continue voting, they
44# must use tokens (bits or channel points).
45TOKENS_REQUIRED
46
47# User is not allowed to vote in poll (e.g. they're banned in the channel).
48USER_FORBIDDEN
49
50# User is not allowed to vote in their own poll with bits.
51SELF_BITS_VOTE_NOT_ALLOWED
52
53# User cannot vote because they have hit a per-user or per-poll rate limit. The
54# user can try again later.
55RATE_LIMITED
56
57# An unknown error occurred.
58UNKNOWN
59}