diff --git a/cmd/events.go b/cmd/events.go index b5d05bb8..66077d43 100644 --- a/cmd/events.go +++ b/cmd/events.go @@ -124,7 +124,7 @@ func init() { triggerCmd.Flags().StringVarP(&eventID, "subscription-id", "u", "", "Manually set the subscription/event ID of the event itself.") // TODO: This description will need to change with https://github.com/twitchdev/twitch-cli/issues/184 triggerCmd.Flags().StringVar(×tamp, "timestamp", "", "Sets the timestamp to be used in payloads and headers. Must be in RFC3339Nano format.") triggerCmd.Flags().IntVar(&charityCurrentValue, "charity-current-value", 0, "Only used for \"charity-*\" events. Manually set the current dollar value for charity events.") - triggerCmd.Flags().IntVar(&charityTargetValue, "charity-target-value", 1500000, "Only used for \"charity-*\" events. Manually set the current dollar value for charity events") + triggerCmd.Flags().IntVar(&charityTargetValue, "charity-target-value", 1500000, "Only used for \"charity-*\" events. Manually set the target dollar value for charity events.") // retrigger flags retriggerCmd.Flags().StringVarP(&forwardAddress, "forward-address", "F", "", "Forward address for mock event.") diff --git a/internal/events/types/follow/follow_event.go b/internal/events/types/follow/follow_event.go index 6b832078..3151d6e5 100644 --- a/internal/events/types/follow/follow_event.go +++ b/internal/events/types/follow/follow_event.go @@ -33,7 +33,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, - Type: "channel.follow", + Type: triggerMapping[params.Transport][params.Trigger], Version: e.SubscriptionVersion(), Condition: models.EventsubCondition{ BroadcasterUserID: params.ToUserID, diff --git a/internal/events/types/stream_change/stream_change_event.go b/internal/events/types/stream_change/stream_change_event.go index 95139e50..fbd53d10 100644 --- a/internal/events/types/stream_change/stream_change_event.go +++ b/internal/events/types/stream_change/stream_change_event.go @@ -47,7 +47,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, - Type: "channel.update", + Type: triggerMapping[params.Transport][params.Trigger], Version: e.SubscriptionVersion(), Condition: models.EventsubCondition{ BroadcasterUserID: params.ToUserID, diff --git a/internal/events/types/user/user_update.go b/internal/events/types/user/user_update.go index ca233b24..5737113f 100644 --- a/internal/events/types/user/user_update.go +++ b/internal/events/types/user/user_update.go @@ -33,7 +33,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, - Type: "user.update", + Type: triggerMapping[params.Transport][params.Trigger], Version: e.SubscriptionVersion(), Condition: models.EventsubCondition{ UserID: params.ToUserID,