I’m using the Twitch API (alongside WebHooks) to manage my bot application. As a part of the process, I need to determine if the user is a follower, subscriber, VIP and/or moderator. I’m aware I can do this with individual calls in the API (and then cache the results), but I didn’t know if there is a quicker way to retrieve information about a user for a channel? I’ve been through the docs and can’t see anything, but wanted to ask in case there is something I’m missing.
Ah I assumed that badges were only applicable if the streamer had enabled them. Is there a guide or reference to the badges that can come through on a chat message?
Right I see - is there no way to test/check this without attaching my Webhook to a stream and then chatting in it? I thought I might be able to use the Twitch CLI to simulate a chat event but looks like it’s not been updated to handle that yet.
Cool I’ve managed to use a Python library to connect on and getting some badges based on their set IDs. For anyone else stumbling onto this thread, these so far are:
a) moving chat to eventsub
2) follower data is protected with a moderator token so it can’t be “selective” over IRC
iii) it’s potentially expensive (in terms of cycles) and a waste of bandwidth for IRC anyway
four) it’s arguable the most useless bit of data in terms of Twitch stuff, especially if the chat is in follower only mode anyway so everyone has to be a following (ignoring mod/vip bypass)
Moving chat to eventsub? Pounding servers with HTTP requests for every message in a channel instead of using protocols that are designed for exactly this scenario? That’s gonna be awful.
Will the WebSocket limit be increased beyond 3 simultaneous connections? That’s a particularly annoying limit for client-side code. Streamers can have non-referential duplicates or slightly differently-configured copies, running either simultaneously, or on different scenes but remaining active to allow for smooth transitions. In such cases, the total number of active clients is unknown and there’s no central controlling system, so conduits don’t really work.