Skip to main content
Corvus Connection

On Bits Use

TwitchTrigger
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
outExecexecNone
userIdDataSystem.Stringmultiplexed
userNameDataSystem.Stringmultiplexed
bitsDataSystem.Int32multiplexed
typeDataSystem.Stringmultiplexed
messageDataSystem.Stringmultiplexed

Bindings

Name
Type
Description
userIdSystem.StringThe viewer's user id.
userNameSystem.StringThe viewer's display name.
bitsSystem.Int32How many bits were used.
typeSystem.StringHow the bits were used (e.g. cheer or power-up).
messageSystem.StringThe chat message the bits were used with.

Parameters

Name
Type
Required
Default
Choices
cooldownSecondsSystem.Int32no0None
perUserCooldownSecondsSystem.Int32no0None
debounceMsSystem.Int32no0None
dedupeKeySystem.Stringno""None
maxConcurrencySystem.Int32no0None

Lowers to C#

[OnBitsUse] Handle(ctx, BitsUseContext e)