Skip to main content
Corvus Connection

On Subscription End

Twitch
Trigger
entry.onSubscriptionEndFires when a subscription ends. Binds the subscriber, tier, and whether it was gifted.Triggers when a subscription ends.Requires the channel:read:subscriptions scope.
Monetization

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
userId
Data
System.String
multiplexed
userName
Data
System.String
multiplexed
tier
Data
System.Int32
multiplexed
isGift
Data
System.Boolean
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    userId
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    userName
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    tier
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    isGift
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed

Bindings

Name
Type
Description
userId
System.String
The subscriber's user id.
userName
System.String
The subscriber's display name.
tier
System.Int32
The subscription tier (1, 2, or 3).
isGift
System.Boolean
True when the ended subscription was gifted.
  • Name
    userId
    Type
    System.String
    Description
    The subscriber's user id.
  • Name
    userName
    Type
    System.String
    Description
    The subscriber's display name.
  • Name
    tier
    Type
    System.Int32
    Description
    The subscription tier (1, 2, or 3).
  • Name
    isGift
    Type
    System.Boolean
    Description
    True when the ended subscription was gifted.

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#

[OnSubscriptionEnd] Handle(ctx, SubscriptionEndContext e)