ENUM

CreateCommunityPointsCustomRewardErrorCode

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

link GraphQL Schema definition

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