Skip to main content
Corvus Connection

On Gift Sub

Twitch
Trigger
entry.onGiftSubFires when a viewer gifts a community subscription bundle. Binds the gifter (or Anonymous) and how many subs were gifted.Triggers on a gifted-sub bundle; total is the gift count.
MonetizationAlertsEngagementSocial

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
gifterName
Data
System.String
multiplexed
total
Data
System.Int32
multiplexed
tier
Data
System.Int32
multiplexed
isAnonymous
Data
System.Boolean
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    gifterName
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    total
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    tier
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    isAnonymous
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed

Bindings

Name
Type
Description
gifterName
System.String
The gifter's display name, or "Anonymous".
total
System.Int32
How many subscriptions were gifted.
tier
System.Int32
The gifted subscription tier (1, 2, or 3).
isAnonymous
System.Boolean
True when the gift was anonymous.
  • Name
    gifterName
    Type
    System.String
    Description
    The gifter's display name, or "Anonymous".
  • Name
    total
    Type
    System.Int32
    Description
    How many subscriptions were gifted.
  • Name
    tier
    Type
    System.Int32
    Description
    The gifted subscription tier (1, 2, or 3).
  • Name
    isAnonymous
    Type
    System.Boolean
    Description
    True when the gift was anonymous.

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#

[OnGiftSub] Handle(ctx, GiftSubContext e)