ENUM

UpdateCommunityPointsCustomRewardErrorCode

The possible reasons updating a custom Community Points reward in a channel could fail.

link GraphQL Schema definition

1enum UpdateCommunityPointsCustomRewardErrorCode {
2
3# An unexpected error occurred.
4UNKNOWN
5
6# The current user is not allowed to update a reward in this channel.
7FORBIDDEN
8
9# The reward was not found.
10NOT_FOUND
11
12# The title failed AutoMod.
13TITLE_AUTOMOD_FAILED
14
15# The prompt failed AutoMod.
16PROMPT_AUTOMOD_FAILED
17
18# The cost is invalid. Costs must be greater than 0.
19COST_INVALID
20
21# The maxPerStream is invalid. maxPerStream must be greater than 0.
22MAX_PER_STREAM_INVALID
23
24# The title is invalid. Titles must not be empty and must be at most 45 characters
25# long.
26TITLE_INVALID
27
28# The background color is invalid. Backgrounds must be a valid hex color, for
29# example "FF0000".
30BACKGROUND_COLOR_INVALID
31
32# A reward with the provided title already exists. Custom reward titles must be
33# unique.
34DUPLICATE_REWARD
35
36# The maxPerUserPerStream is invalid. maxPerUserPerStream must be greater than 0.
37MAX_PER_USER_PER_STREAM_INVALID
38
39# The globalCooldown is invalid. globalCooldown must be greater tham 0.
40GLOBAL_COOLDOWN_INVALID
41}