Definition
sendExtensionChatMessage(config, broadcaster, extensionVersion, text)
asyncSends a chat message in the name of the extension to a channel.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
config | EbsCallConfig | none | see below | |
config.clientId | string | none | The client ID of the extension. | |
config.ownerId | string | none | The user ID of the extension's owner. | |
config.secret | string | none | A valid extension secret to sign the JWT with. | |
config.ttl | number | none | The time the JWT should be valid for, in seconds. Defaults to 1 minute (60 seconds). | |
broadcaster | UserIdResolvable A user ID or a user or channel object. This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name. Aliased type: string | number | UserIdResolvableType | none | The broadcaster to send a chat message to. | |
extensionVersion | string | none | The version of the extension. | |
text | string | none | The text to send to the channel. |
Return type: void