Skip to content

Commit edad44d

Browse files
Revert "Merge branch 'main' of https://github.com/twitchdev/twitch-cli into main"
This reverts commit b92e332, reversing changes made to 06c9feb.
1 parent b92e332 commit edad44d

File tree

14 files changed

+74
-474
lines changed

14 files changed

+74
-474
lines changed

docs/event.md

+48-43
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,30 @@ Used to either create or send mock events for use with local webhooks testing.
1616

1717
**Args**
1818

19-
| Argument | Description |
20-
|---------------------|------------------------------------------------------------------------------------------------------------|
21-
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
22-
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
23-
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
24-
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
25-
| `transaction` | Bits in Extensions transactions events. |
26-
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
27-
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
28-
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
29-
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
30-
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
31-
| `raid` | Channel Raid event with a random viewer count. |
32-
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
33-
| `stream-change` | Stream Changed event. |
34-
| `streamup` | Stream online event. |
35-
| `streamdown` | Sstream offline event. |
36-
| `add-moderator` | Channel moderator add event. |
37-
| `remove-moderator` | Channel moderator removal event. |
38-
| `ban` | Channel ban event. |
39-
| `unban` | Channel unban event. |
40-
19+
| Argument | Description |
20+
| ---------------------- | ---------------------------------------------------------------------------------------------------------- |
21+
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
22+
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
23+
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
24+
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
25+
| `transaction` | Bits in Extensions transactions events. |
26+
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
27+
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
28+
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
29+
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
30+
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
31+
| `raid` | Channel Raid event with a random viewer count. |
32+
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
33+
| `stream-change` | Stream Changed event. |
34+
| `streamup` | Only usable with the `eventsub` transport, a stream online event. |
35+
| `streamdown` | Only usable with the `eventsub` transport, a stream offline event. |
36+
| `add-moderator` | Channel moderator add event. |
37+
| `remove-moderator` | Channel moderator removal event. |
38+
| `ban` | Channel ban event. |
39+
| `unban` | Channel unban event. |
40+
| `hype-train-begin` | Hype Train begins event. |
41+
| `hype-train-progress` | Hype Train progress event. |
42+
| `hype-train-end` | Hype Train ends event. |
4143

4244
**Flags**
4345

@@ -54,7 +56,7 @@ Used to either create or send mock events for use with local webhooks testing.
5456
| `--status` | `-S` | Status of the event object, currently applies to channel points redemptions. | `-S fulfilled` | N |
5557
| `--item-id` | `-i` | Manually set the ID of the event payload item (for example the reward ID in redemption events). | `-i 032e4a6c-4aef-11eb-a9f5-1f703d1f0b92` | N |
5658
| `--cost` | `-C` | Amount of bits or channel points redeemed/used in the event. | `-C 250` | N |
57-
| `--description` | `-d` | Title the stream should be updated/started with. | `-d Awesome new title!` | N |
59+
| `--description` | `-d` | Title the stream should be updated with. | `-d Awesome new title!` | N |
5860

5961
**Examples**
6062

@@ -105,26 +107,29 @@ Allows you to test if your webserver responds to subscription requests properly.
105107
**Args**
106108

107109
| Argument | Description |
108-
|---------------------|------------------------------------------------------------------------------------------------------------|
109-
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
110-
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
111-
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
112-
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
113-
| `transaction` | Bits in Extensions transactions events. |
114-
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
115-
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
116-
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
117-
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
118-
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
119-
| `raid` | Channel Raid event with a random viewer count. |
120-
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
121-
| `stream-change` | Stream Changed event. |
122-
| `streamup` | Stream online event. |
123-
| `streamdown` | Sstream offline event. |
124-
| `add-moderator` | Channel moderator add event. |
125-
| `remove-moderator` | Channel moderator removal event. |
126-
| `ban` | Channel ban event. |
127-
| `unban` | Channel unban event. |
110+
| ---------------------- | ---------------------------------------------------------------------------------------------------------- |
111+
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
112+
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
113+
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
114+
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
115+
| `transaction` | Bits in Extensions transactions events. |
116+
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
117+
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
118+
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
119+
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
120+
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
121+
| `raid` | Channel Raid event with a random viewer count. |
122+
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
123+
| `stream_change` | Stream changed event. |
124+
| `streamup` | Only usable with the `eventsub` transport, a stream online event. |
125+
| `streamdown` | Only usable with the `eventsub` transport, a stream offline event. |
126+
| `add-moderator` | Channel moderator add event. |
127+
| `remove-moderator` | Channel moderator removal event. |
128+
| `ban` | Channel ban event. |
129+
| `unban` | Channel unban event. |
130+
| `hype-train-begin` | Hype Train begins event. |
131+
| `hype-train-progress` | Hype Train progress event. |
132+
| `hype-train-end` | Hype Train ends event. |
128133

129134
**Flags**
130135

internal/events/event.go

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type MockEventParameters struct {
1717
Status string
1818
ItemID string
1919
Cost int64
20-
IsPermanent bool
2120
StreamTitle string
2221
}
2322

internal/events/models.go

+18-15
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
package events
44

55
var triggerSupported = map[string]bool{
6-
"subscribe": true,
7-
"unsubscribe": true,
8-
"gift": true,
9-
"cheer": true,
10-
"transaction": true,
11-
"follow": true,
12-
"add-redemption": true,
13-
"update-redemption": true,
14-
"add-reward": true,
15-
"update-reward": true,
16-
"remove-reward": true,
17-
"add-moderator": true,
18-
"remove-moderator": true,
19-
"ban": true,
20-
"unban": true,
6+
"subscribe": true,
7+
"unsubscribe": true,
8+
"gift": true,
9+
"cheer": true,
10+
"transaction": true,
11+
"follow": true,
12+
"add-redemption": true,
13+
"update-redemption": true,
14+
"add-reward": true,
15+
"update-reward": true,
16+
"remove-reward": true,
17+
"add-moderator": true,
18+
"remove-moderator": true,
19+
"ban": true,
20+
"unban": true,
21+
"hype-train-begin": true,
22+
"hype-train-progress": true,
23+
"hype-train-end": true,
2124
}
2225

2326
var transportSupported = map[string]bool{

internal/events/trigger/trigger_event.go

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func Fire(p TriggerParameters) (string, error) {
6161
IsAnonymous: p.IsAnonymous,
6262
Cost: p.Cost,
6363
Status: p.Status,
64-
ItemID: p.ItemID,
6564
StreamTitle: p.StreamTitle,
6665
}
6766

internal/events/types/ban/ban.go

-127
This file was deleted.

0 commit comments

Comments
 (0)