Twitch: Get Custom Power-ups

Gets the custom Power-ups available for a Twitch channel and saves the full response object returned by Twitch.

If Channel Name is empty, SAMMI uses the default Twitch account. If Twitch is not connected, the channel cannot be resolved, or the request fails, the saved variable is set to undefined.

Box Name Type Description
Channel Name Twitch Account Twitch channel to fetch custom Power-ups from. Leave empty to use the default Twitch account.
Save Variable As String Variable name to save the response object.

Response Data:

Variable Name Type Description
data Array Array of custom Power-up objects returned by Twitch.
data[0-?] Object A single custom Power-up object.
pagination Object Pagination information returned by Twitch, if available.

Example:

Channel Name Save Variable As Result
Main Twitch account customPowerups Saves the custom Power-ups response to customPowerups.

After running the command, you can use other object/array commands to inspect the returned data, such as reading the first Power-up name or ID from the saved result.

Back to the list