OBJECT

CommunityPointsCommunityGoal

Community goal.

link GraphQL Schema definition

1type CommunityPointsCommunityGoal {
2
3# The amount of community points that this goal needs to succeed.
4amountNeeded: Int!
5
6# The background color of this goal. Should be a hex color string, for example
7# "FF0000".
8backgroundColor: String!
9
10# The default image of community goals.
11defaultImage: CommunityPointsImage!
12
13# The description of this goal.
14description: String
15
16# The *initial* duration the streamer set for the goal.
17# Only really used during the UNSTARTED state; once the goal is started
18# the endedAt timestamp is populated (and updated for extended deadlines).
19durationDays: Int!
20
21# When the goal ended / will end.
22endedAt: Time
23
24# The id of the goal.
25id: ID!
26
27# The image of the goal.
28image: CommunityPointsImage
29
30# If this goal is available to be contributed to.
31# true when the goal is active and the streamer is live.
32# For MLP, this is just whether the channel is live.
33isInStock: Boolean!
34
35# The max per stream, per user contribution limit.
36perStreamUserMaximumContribution: Int!
37
38# The total points contributed to this goal.
39pointsContributed: Int!
40
41# The small contribution needed to contribute to the goal. Contribution can only
42# be
43# less than this amount if the goal has less than this amount left to complete or
44# if
45# the viewer has less than this amount to be able to contribute.
46smallContribution: Int!
47
48# When the goal started.
49startedAt: Time
50
51# The current status of this goal.
52status: CommunityPointsCommunityGoalStatus!
53
54# The title of this goal.
55title: String!
56
57# The type of this goal.
58type: CommunityPointsCommunityGoalType!
59
60}