Twitch API Version Update Discussion & FAQ

I would treat all IDs as strings. It’ll be safer that way long-term. You can already see that some IDs have turned into GUIDs in v5. E.g. Channel posts.