Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemId doesn't get passed to Redemption #37

Closed
robbie-thompson opened this issue Feb 28, 2021 · 0 comments · Fixed by #38
Closed

ItemId doesn't get passed to Redemption #37

robbie-thompson opened this issue Feb 28, 2021 · 0 comments · Fixed by #38
Labels
good first issue Good for newcomers

Comments

@robbie-thompson
Copy link

According to the help flags you can specify a custom item ID for the add-redemption event:

$ twitch event trigger add-redemption -h
...
-i, --item-id string           Manually set the ID of the event payload item (for example the reward ID in redemption events).

You can then do this like so: twitch event trigger add-redemption -i random-id-here

However, the generated body doesn't include this ID, and instead uses a randomly generated one:

{
   ...
   "event":{
      ...
      "reward":{
         "id":"65f6f018-006b-be0b-fa1e-01ae9c7f177a"
         ...
      }
   }
}

I've had a quick look through the command definition and how it gets passed through to the RedemptionParams structure, but nothing obvious is jumping out at me.

@lleadbet lleadbet added the good first issue Good for newcomers label Mar 1, 2021
lleadbet added a commit that referenced this issue Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants