Skip to content

Commit 4022d15

Browse files
authored
Merge pull request #247 from twitchdev/eventsub-cost-doc-243
Updated docs for --count and --cost EventSub trigger flags
2 parents d030dc3 + efaa285 commit 4022d15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/events.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ func init() {
142142
triggerCmd.Flags().StringVarP(&fromUser, "from-user", "f", "", "User ID of the user sending the event, for example the user following another user.")
143143
triggerCmd.Flags().StringVarP(&giftUser, "gift-user", "g", "", "Used only for \"gift\" events. Denotes the User ID of the gifting user.")
144144
triggerCmd.Flags().BoolVarP(&isAnonymous, "anonymous", "a", false, "Denotes if the event is anonymous. Only applies to Gift and Sub events.")
145-
triggerCmd.Flags().IntVarP(&count, "count", "c", 1, "Count of events to events. This will simulate a sub gift, or large number of cheers.")
145+
triggerCmd.Flags().IntVarP(&count, "count", "c", 1, "Number of times to run an event. This can be used to simulate rapid events, such as multiple sub gift, or large number of cheers.")
146146
triggerCmd.Flags().StringVarP(&eventStatus, "event-status", "S", "", "Status of the Event object (.event.status in JSON); currently applies to channel points redemptions.")
147147
triggerCmd.Flags().StringVarP(&subscriptionStatus, "subscription-status", "r", "enabled", "Status of the Subscription object (.subscription.status in JSON). Defaults to \"enabled\".")
148148
triggerCmd.Flags().StringVarP(&itemID, "item-id", "i", "", "Manually set the ID of the event payload item (for example the reward ID in redemption events). For stream events, this is the game ID.")
149149
triggerCmd.Flags().StringVarP(&itemName, "item-name", "n", "", "Manually set the name of the event payload item (for example the reward ID in redemption events). For stream events, this is the game title.")
150-
triggerCmd.Flags().Int64VarP(&cost, "cost", "C", 0, "Amount of bits or channel points redeemed/used in the event.")
150+
triggerCmd.Flags().Int64VarP(&cost, "cost", "C", 0, "Amount of subscriptions, bits, or channel points redeemed/used in the event.")
151151
triggerCmd.Flags().StringVarP(&description, "description", "d", "", "Title the stream should be updated with.")
152152
triggerCmd.Flags().StringVarP(&gameID, "game-id", "G", "", "Sets the game/category ID for applicable events.")
153153
triggerCmd.Flags().StringVarP(&tier, "tier", "", "", "Sets the subscription tier. Valid values are 1000, 2000, and 3000.")

docs/event.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ This command can take either the Event or Alias listed as an argument. It is pre
7878
| `--charity-current-value` | | For charity events, manually set the charity dollar value. | `--charity-current-value 11000` | N |
7979
| `--charity-target-value` | | For charity events, manually set the charity dollar value. | `--charity-current-value 23400` | N |
8080
| `--client-id` | | Manually set the Client ID used for revoke, grant, and bits transactions. | `--client-id 4ofh8m0706jqpholgk00u3xvb4spct` | N |
81-
| `--cost` | `-C` | Amount of bits or channel points redeemed/used in the event. | `-C 250` | N |
81+
| `--cost` | `-C` | Amount of subscriptions, bits, or channel points redeemed/used in the event. | `-C 250` | N |
8282
| `--count` | `-c` | Count of events to fire. This can be used to simulate an influx of events. | `-c 100` | N |
8383
| `--description` | `-d` | Title the stream should be updated/started with. | `-d Awesome new title!` | N |
8484
| `--event-status` | `-S` | Status of the Event object (.event.status in JSON); Currently applies to channel points redemptions. | `-S fulfilled` | N |

0 commit comments

Comments
 (0)