Skip to main content
Corvus Connection

Twitch: Update Reward

Twitch
Action
twitch.reward.updateEdits a reward this app created. Every parameter left blank is untouched on Twitch, so one field can change without restating the rest. A reward authored in the Twitch dashboard cannot be edited here, because Twitch permits that only to the app that created it.Applies the authored edits to a managed reward; binds ok / rewardId / error.
Engagement

Inputs

Name
Kind
Type
Flags
in
Exec
exec
multiplexed
rewardId
Data
System.String
None
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed
  • Name
    rewardId
    Kind
    Data
    Type
    System.String
    Flags
    None

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
ok
Data
System.Boolean
multiplexed
rewardId
Data
System.String
multiplexed
error
Data
System.String
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    ok
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    rewardId
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    error
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed

Parameters

Name
Type
Required
Default
Choices
title
System.String
no
""
None
cost
System.Int32
no
0
None
prompt
System.String
no
""
None
backgroundColor
System.String
no
""
None
  • Name
    title
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None
  • Name
    cost
    Type
    System.Int32
    Required
    no
    Default
    0
    Choices
    None
  • Name
    prompt
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None
  • Name
    backgroundColor
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None

Lowers to C#

var reward = await ctx.Twitch.Rewards.UpdateAsync(rewardId, title, cost, prompt, backgroundColor);