Skip to main content
Corvus Connection

On Subscribe

Twitch
Trigger
entry.onSubscribeFires when a viewer subscribes (standalone or gifted). Binds the subscriber, tier, and whether it was gifted.Triggers on a subscription; tier is 1, 2, or 3.
MonetizationAlertsEngagement

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
userId
Data
System.String
multiplexed
displayName
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
    displayName
    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.
displayName
System.String
The subscriber's display name.
tier
System.Int32
The subscription tier (1, 2, or 3).
isGift
System.Boolean
True when the subscription was gifted.
  • Name
    userId
    Type
    System.String
    Description
    The subscriber's user id.
  • Name
    displayName
    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 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#

[OnSubscribe] Handle(ctx, SubscribeContext e)

Used in