Skip to main content
Corvus Connection

On Bits Use

Twitch
Trigger
entry.onBitsUseFires when a viewer uses bits. Binds the viewer, bit count, and how the bits were used.Triggers when a viewer uses bits.Requires the bits:read scope.
MonetizationChat

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
userId
Data
System.String
multiplexed
userName
Data
System.String
multiplexed
bits
Data
System.Int32
multiplexed
type
Data
System.String
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
    bits
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    type
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    message
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed

Bindings

Name
Type
Description
userId
System.String
The viewer's user id.
userName
System.String
The viewer's display name.
bits
System.Int32
How many bits were used.
type
System.String
How the bits were used (e.g. cheer or power-up).
message
System.String
The chat message the bits were used with.
  • Name
    userId
    Type
    System.String
    Description
    The viewer's user id.
  • Name
    userName
    Type
    System.String
    Description
    The viewer's display name.
  • Name
    bits
    Type
    System.Int32
    Description
    How many bits were used.
  • Name
    type
    Type
    System.String
    Description
    How the bits were used (e.g. cheer or power-up).
  • Name
    message
    Type
    System.String
    Description
    The chat message the bits were used with.

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#

[OnBitsUse] Handle(ctx, BitsUseContext e)