ConduitSubscriptionCallbackManager
The callback manager for a ConduitSubscription.
Type parameters
Type parameter |
---|
T extends SubscriptionTypes |
Constructors
new ConduitSubscriptionCallbackManager()
Parameters
Parameter | Type |
---|---|
conduit | Conduit |
Returns
ConduitSubscriptionCallbackManager
<T
>
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:21
Properties
Property | Modifier | Type | Description |
---|---|---|---|
conduit | readonly | Conduit | The Conduit that created this manager. |
Methods
add()
Adds a callback to the manager.
Parameters
Parameter | Type | Description |
---|---|---|
callback | ConduitSubscriptionCallback <T > | The callback to add. |
Returns
this
The manager.
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:33
execute()
Executes all the callbacks with the message.
Parameters
Parameter | Type | Description |
---|---|---|
message | SubscriptionMessages <ConnectionTypes >[T ] | The message to execute the callbacks with. |
Returns
Promise
<void
>
Source
twitchfy/packages/eventsub/src/structures/ConduitSubscriptionCallbackManager.ts:45