Skip to main content
Corvus Connection

On Goal End

Twitch
Trigger
entry.onGoalEndFires when a creator goal ends. Binds whether it was achieved and its final and target amounts.Triggers when a creator goal ends.Requires the channel:read:goals scope.
EngagementLifecycle

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
type
Data
System.String
multiplexed
isAchieved
Data
System.Boolean
multiplexed
currentAmount
Data
System.Int32
multiplexed
targetAmount
Data
System.Int32
multiplexed
endedAt
Data
System.DateTime
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    type
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    isAchieved
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    currentAmount
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    targetAmount
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    endedAt
    Kind
    Data
    Type
    System.DateTime
    Flags
    multiplexed

Bindings

Name
Type
Description
type
System.String
The goal type (e.g. follower, subscription, or bits).
isAchieved
System.Boolean
True when the goal was reached before it ended.
currentAmount
System.Int32
The goal's final amount.
targetAmount
System.Int32
The amount that would have completed the goal.
endedAt
System.DateTime
When the goal ended (UTC).
  • Name
    type
    Type
    System.String
    Description
    The goal type (e.g. follower, subscription, or bits).
  • Name
    isAchieved
    Type
    System.Boolean
    Description
    True when the goal was reached before it ended.
  • Name
    currentAmount
    Type
    System.Int32
    Description
    The goal's final amount.
  • Name
    targetAmount
    Type
    System.Int32
    Description
    The amount that would have completed the goal.
  • Name
    endedAt
    Type
    System.DateTime
    Description
    When the goal ended (UTC).

Parameters

Name
Type
Required
Default
Choices
cooldownSeconds
System.Int32
no
0
None
perUserCooldownSeconds
System.Int32
no
0
None
debounceMs
System.Int32
no
0
None
dedupeKey
System.String
no
""
None
maxConcurrency
System.Int32
no
0
None
  • Name
    cooldownSeconds
    Type
    System.Int32
    Required
    no
    Default
    0
    Choices
    None
  • Name
    perUserCooldownSeconds
    Type
    System.Int32
    Required
    no
    Default
    0
    Choices
    None
  • Name
    debounceMs
    Type
    System.Int32
    Required
    no
    Default
    0
    Choices
    None
  • Name
    dedupeKey
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None
  • Name
    maxConcurrency
    Type
    System.Int32
    Required
    no
    Default
    0
    Choices
    None

Lowers to C#

[OnGoalEnd] Handle(ctx, GoalContext e)