I just received the Twitch Developer Forums summary mail and read this topic. Funny because i have the same issue and currently trying to fix the null reference exception in my .NET app right now. Maybe someone give me a hint to fix. I deserialize the json string into an own class with explicit string array for the args. How to check the array is null/nothing? Is nothing, ubound, length? Btw. I’m getting the unbanned username through API and target_user_id.
@Namania86 A simple google search should answer all of your questions about arrays in .NET
And the thing is that we used to be able to get usernames without having to do API requests and the most important thing is that the reasons disappeared.
I’m wondering if we’re ever gonna get an answer from twitch staff on this topic as we don’t even know if it’s intentional from twitch to remove those informations from the pubsub or if it’s a bug.
As the new API is out and this topic is 15 days old and this problem still hasn’t been fixed. I was wondering if it would get a fix or at least someone looking into it ? @DallasNChains@xangold
Has anyone heard any updates about this yet? Multiple people I know have poked staff about it without any response whatsoever, but it still seems broken; or is this new, intended behaviour?
Sorry for the delay in response. Should be fixed shortly.
example timeout
{"data":{"type":"chat_login_moderation","moderation_action":"timeout","args":["xantest419","600","this is a test reason"],"created_by":"xangold","created_by_user_id":"39141793","msg_id":"","target_user_id":"94847705"}}
example ban
{"data":{"type":"chat_login_moderation","moderation_action":"ban","args":["xantest419","this is a test reason"],"created_by":"xangold","created_by_user_id":"39141793","msg_id":"","target_user_id":"94847705"}}
Looks correct to me. One thing I noticed: /untimeout also sends a “moderation_action”: “unban”.
not sure if that is related in any manner, but might be worth fixing while at it.
The only functional difference, as far as I know, is that /untimeout can’t be used when the target is /banned. When triggerable, has the same effect as /unban.