Skip to main content

Reaction

General#

say#

FieldTypeRequiredDefaultDescription
messagestring✔️noneYour message
Return#

Return a Promise void who resolve when message is recieved.

Example#
async function reaction(event) {  await module['twitch'].say('Hello world')}

me#

FieldTypeRequiredDefaultDescription
actionstring✔️noneYour action
Return#

Return a Promise void who resolve when message is recieved.

Example#
async function reaction(event) {  await module['twitch'].me('do a Hello world !')}

whisper#

FieldTypeRequiredDefaultDescription
userstring✔️none
messagestring✔️noneYour message
Return#

Return a Promise void who resolve when message is recieved.

Example#
async function reaction(event) {  await module['twitch'].whisper('evandikt', 'Hello world')}

Bits#

Bits Leaderboard#

FieldTypeRequiredDefaultDescription
filterHelixBitsLeaderboardQuery✔️none
Return#

Return a Promise with this

Example#
async function reaction(event) {  await module['twitch'].bitsGetLeaderboard({})}

Clips#

Create a clip#

Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].clipsCreateClip()}

clipsGetClipById#

FieldTypeRequiredDefaultDescription
idstring✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].clipsGetClipById('520')}

clipsGetClipsForBroadcaster#

FieldTypeRequiredDefaultDescription
filterHelixClipFilter✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].clipsGetClipsForBroadcaster('520')}

Games#

gamesGetGameById#

FieldTypeRequiredDefaultDescription
idstring✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].gamesGetGameById("my-game-id")}

gamesGetGameByName#

FieldTypeRequiredDefaultDescription
namestring✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].gamesGetGameByName('SMITE')}

gamesGetTopGames#

FieldTypeRequiredDefaultDescription
paginationstring[]✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].gamesGetTopGames(['1'])}

Moderation#

moderationCheckUserBan#

FieldTypeRequiredDefaultDescription
userstring✔️noneThe user to check for a ban in the given channel
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].moderationCheckUserBan('evandikt')}

moderationCheckUserMod#

FieldTypeRequiredDefaultDescription
userstring✔️noneThe user to check for a ban in the given channel
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].moderationCheckUserMod('evandikt')}

Users#

usersGetFollows#

FieldTypeRequiredDefaultDescription
filterHelixFollowFilter✔️none
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].usersGetFollows({})}

usersGetMe#

Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].usersGetMe()}

usersGetUserByName#

FieldTypeRequiredDefaultDescription
userstring✔️noneThe user to check for a ban in the given channel
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].usersGetUserByName('evandikt')}

Ads#

Run Commercial#

FieldTypeRequiredDefaultDescription
durationnumber✔️none30, 60, 90, 120, 150, 180
Return#

Return a Promise with void.

Example#
async function reaction(event) {  await module['twitch'].runCommercial(10000)}