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