PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
791 stars 163 forks source link

Add support for type and user_id queries on get_subscriptions #381

Closed PredaaA closed 1 year ago

PredaaA commented 1 year ago

This PR adds support for type and user_id queries to EventSub get_subscriptions. https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions

Checklist

chillymosh commented 1 year ago

Just to note, the filters are mutually exclusive so if more than one are sent it will probably fail with a 400 error.

The typings should probably be Optional since they are set to None and are also not required.

I'll let @IAmTomahawkx confirm this as he worked on Eventsub.

PredaaA commented 1 year ago

Just pushed requested changes.

IAmTomahawkx commented 1 year ago

@PredaaA can you fix the merge conflicts so i can merge this? thanks!

PredaaA commented 1 year ago

Yup, done!