chatterino2
chatterino2 copied to clipboard
Implement Unban Requests somehow
Implement Unban Requests somehow, like in a new tab, how mentions/whispers are handled.
Can listen to the unofficial channel-unban-requests.<user-id>.<channel-id>
pubsub topic to recieve the unban requests in real-time (though I haven't tested this with third-party oauth) - example: https://github.com/twitch4j/twitch4j/pull/210. However, properly approving/denying would need to use GQL at the moment as there's no official api (though: for the approval, we could just send /unban
, but the unbanned user wouldn't see the same "Note from Channel Moderators:" box that would be present via a gql approval).
2024 update: should use https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelunban_requestcreate / https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelunban_requestupdate instead
though I haven't tested this with third-party oauth
Does not work, needs first-party OAuth token or you'll get an authorization error.
it's now legal to do this https://dev.twitch.tv/docs/api/reference/#get-unban-requests https://dev.twitch.tv/docs/api/reference/#resolve-unban-requests
Needs polling though :vomiting_face:
Needs polling though 🤮
Or eventsub websocket