Comments (6)
Hello,
Sorry I've forgotten to reply to your comment, yes it works ! Thanks for your help.
Have a great day.
from tesjs.
Hi! Could you please show how you are subscribing to the event?
from tesjs.
Yes sure ! There is the code :
tes.on('channel.raid', async (event) => {
// my code when the event is triggered
});
// create a new subscription for the 'channel.raid' event for broadcaster
tes.subscribe('channel.raid', {
broadcaster_user_id: 12345678
}).then(_ => {
console.log("Subscribed to channel.raid event");
}).catch(err => {
console.log("RAID SUBSCRIBE ERROR");
console.log(err);
});
from tesjs.
Looks like your condition for the raid subscription is incorrect. You'll need either from_broadcaster_user_id
or to_broadcaster_user_id
(or maybe both) depending on what you are trying to accomplish with your event handler. Let me know if that fixes your problem!
As a side note, if that is the problem, I am intending to improve intellisense on conditions with #39. I should also probably try to improve the error handling/messaging here since it isn't immediately obvious what the source of the error is
from tesjs.
@TiotBenjy did this solve your problem? I'll be closing this if it did, or if I do not hear back soon 👍
from tesjs.
Great! Happy to help 🙂
from tesjs.
Related Issues (20)
- [QUESTION]Client-ID HOT 1
- [RFE] When we automatically issue tokens, we want to choose a permission. HOT 1
- [QUESTION]Reasons to search for an appetizer for receiving a 409 error HOT 3
- [BUG] TES will allow incorrect configuration HOT 2
- [RFE] Switch to use fetch
- [RFE] Allow External Auth Handling
- [CHORE] Switch to Async/Await Syntax HOT 1
- [QUESTION] error when i subscribe to any event HOT 7
- [RFE] Improve Error Handling For Subscribe
- Refactor whserver
- [RFE] Switch lib to ESM HOT 1
- Update Express to 4.18.2 HOT 1
- [RFE] Add Version to `subscribe` HOT 1
- [RFE] Improve docs HOT 2
- [Chore] Update WebSocket URL
- Allow TES config to allow url for websocket connect to Twitch Mock CLI HOT 3
- [CHORE] Update Subscription Quotas Per Connection
- [BUG] TypeError: this.refreshToken is not a function HOT 3
- [BUG] Channel receive redeem problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesjs.