Skip to main content

Goals

FunctionReturns
getGoalsPromise<Array<Goal>>

Functions​

getGoals​

twitch.goal.getGoals(): Promise<Array<Goal>>

Types​

Goal​

type Goal = {
id: string
broadcasterId: string
broadcasterName: string
broadcasterLogin: string
type: GoalType
description: string
currentAmount: number
targetAmount: number
createdAt: string
}

GoalType​

type GoalType = "subscription" | "subscription_count" | "new_subscription" | "new_subscription_count" | "follower"