Skip to content

Commit

Permalink
fix(events): remove commercial event emit
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jan 4, 2024
1 parent 293740a commit 8dac3e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ class Events extends Core {
return;
}
await twitch.apiClient?.asIntent(['broadcaster'], ctx => ctx.channels.startChannelCommercial(cid, duration as 30 | 60 | 90 | 120 | 150 | 180));
eventEmitter.emit('commercial', { duration });
} else {
throw new Error('Incorrect duration set');
}
Expand Down

0 comments on commit 8dac3e8

Please sign in to comment.