Skip to main content

Reaction

General#

say#

FieldTypeRequiredDefaultDescription
messagestring✔️noneYour message
Return#

Return a Promise void who resolve when message is recieved.

Example#
const reaction = async (event) => {
await moduleTwitch.say('Hello world')
}

me#

FieldTypeRequiredDefaultDescription
actionstring✔️noneYour action
Return#

Return a Promise void who resolve when message is recieved.

Example#
const reaction = async (event) => {
await moduleTwitch.me('do a Hello world !')
}

whisper#

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

Return a Promise void who resolve when message is recieved.

Example#
const reaction = async (event) => {
await moduleTwitch.whisper('evandikt', 'Hello world')
}

Bits#

Bits Leaderboard#

FieldTypeRequiredDefaultDescription
filterHelixBitsLeaderboardQuery✔️none
Return#

Return a Promise with this

Example#
const reaction = async (event) => {
await moduleTwitch.bitsGetLeaderboard({})
}

Clips#

Create a clip#

Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.clipsCreateClip()
}

clipsGetClipById#

FieldTypeRequiredDefaultDescription
idstring✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.clipsGetClipById('520')
}

clipsGetClipsForBroadcaster#

FieldTypeRequiredDefaultDescription
filterHelixClipFilter✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.clipsGetClipsForBroadcaster('520')
}

Games#

gamesGetGameById#

FieldTypeRequiredDefaultDescription
idstring✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.gamesGetGameById("my-game-id")
}

gamesGetGameByName#

FieldTypeRequiredDefaultDescription
namestring✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.gamesGetGameByName('SMITE')
}

gamesGetTopGames#

FieldTypeRequiredDefaultDescription
paginationstring[]✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.gamesGetTopGames(['1'])
}

Moderation#

moderationCheckUserBan#

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

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.moderationCheckUserBan('evandikt')
}

moderationCheckUserMod#

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

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.moderationCheckUserMod('evandikt')
}

Users#

usersGetFollows#

FieldTypeRequiredDefaultDescription
filterHelixFollowFilter✔️none
Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.usersGetFollows({})
}

usersGetMe#

Return#

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.usersGetMe()
}

usersGetUserByName#

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

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.usersGetUserByName('evandikt')
}

Ads#

Run Commercial#

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

Return a Promise with void.

Example#
const reaction = async (event) => {
await moduleTwitch.runCommercial(10000)
}