Skip to main content
Corvus Connection

On Resub Message

Twitch
Trigger
entry.onResubMessageFires when a viewer shares a resubscription message. Binds the subscriber, tier, streak, and message.Triggers on a resubscription with a shared message.Requires the channel:read:subscriptions scope.
MonetizationChatAlerts

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
userId
Data
System.String
multiplexed
userName
Data
System.String
multiplexed
tier
Data
System.Int32
multiplexed
cumulativeMonths
Data
System.Int32
multiplexed
streakMonths
Data
System.Int32
multiplexed
message
Data
System.String
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
    cumulativeMonths
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    streakMonths
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    message
    Kind
    Data
    Type
    System.String
    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).
cumulativeMonths
System.Int32
How many months the viewer has subscribed in total.
streakMonths
System.Int32
The viewer's current consecutive-month streak.
message
System.String
The message the subscriber shared.
  • 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
    cumulativeMonths
    Type
    System.Int32
    Description
    How many months the viewer has subscribed in total.
  • Name
    streakMonths
    Type
    System.Int32
    Description
    The viewer's current consecutive-month streak.
  • Name
    message
    Type
    System.String
    Description
    The message the subscriber shared.

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#

[OnResubMessage] Handle(ctx, ResubMessageContext e)