# Args always null moderation pubsub?

**URL:** <https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544>\
**Category:** API\
**Created:** [August 25, 2017, 9:14pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544 "2017-08-25T21:14:52Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Equinoxbig](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/equinoxbig/32/3162_2.png) [@Equinoxbig](https://staging-discuss.dev.twitch.com/u/Equinoxbig)\
**Post date:** [August 25, 2017, 9:14pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/1 "2017-08-25T21:14:53Z")

</div>

Hello,

From what I remember I was able to get the reason of a ban / unban and the name of the person that got unbanned using the moderation pubsub.

However it seems that now it’s always returning null on ban/unban only, not on timeout.

Are there any explanations or things I missed ?

---

<div class="post-metadata">

**Author:** ![Gav](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/gav/32/1544_2.png) [@Gav](https://staging-discuss.dev.twitch.com/u/Gav)\
**Post date:** [August 26, 2017, 10:34am UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/2 "2017-08-26T10:34:25Z")

</div>

I’m getting null only for unban & untimeout, ban and timeout I still get the name.

---

<div class="post-metadata">

**Author:** ![Equinoxbig](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/equinoxbig/32/3162_2.png) [@Equinoxbig](https://staging-discuss.dev.twitch.com/u/Equinoxbig)\
**Post date:** [August 26, 2017, 4:29pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/3 "2017-08-26T16:29:32Z")

</div>

Indeed I do get the name on bans but I can’t get the reason, and unban has literally nothing left.

I guess we’ll have to wait @xangold 's answer

---

<div class="post-metadata">

**Author:** ![Namania86](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/namania86/32/3152_2.png) [@Namania86](https://staging-discuss.dev.twitch.com/u/Namania86)\
**Post date:** [September 1, 2017, 5:26am UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/5 "2017-09-01T05:26:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Equinoxbig](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/equinoxbig/32/3162_2.png) [@Equinoxbig](https://staging-discuss.dev.twitch.com/u/Equinoxbig)\
**Post date:** [September 1, 2017, 4:47pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/6 "2017-09-01T16:47:05Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![Equinoxbig](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/equinoxbig/32/3162_2.png) [@Equinoxbig](https://staging-discuss.dev.twitch.com/u/Equinoxbig)\
**Post date:** [September 16, 2017, 8:19pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/7 "2017-09-16T20:19:28Z")

</div>

Hello,

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

---

<div class="post-metadata">

**Author:** ![CBenni](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/cbenni/32/297_2.png) [@CBenni](https://staging-discuss.dev.twitch.com/u/CBenni)\
**Post date:** [October 4, 2017, 9:23am UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/8 "2017-10-04T09:23:49Z")

</div>

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? 🙄

---

<div class="post-metadata">

**Author:** ![Gav](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/gav/32/1544_2.png) [@Gav](https://staging-discuss.dev.twitch.com/u/Gav)\
**Post date:** [October 9, 2017, 9:57pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/9 "2017-10-09T21:57:23Z")

</div>

Still nothing it seems, can’t see who unbans.

---

<div class="post-metadata">

**Author:** ![xangold](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/xangold/32/527_2.png) [@xangold](https://staging-discuss.dev.twitch.com/u/xangold)\
**Post date:** [October 10, 2017, 6:01pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/10 "2017-10-10T18:01:36Z")

</div>

Hi,

Sorry for the delay in response. Should be fixed shortly.

example timeout

```auto
{"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

```auto
{"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"}}

```

example unban

```auto
{"data":{"type":"chat_login_moderation","moderation_action":"unban","args":["xantest419"],"created_by":"xangold","created_by_user_id":"39141793","msg_id":"","target_user_id":"94847705"}}

```

If that does not look correct, please reply ASAP.

---

<div class="post-metadata">

**Author:** ![CBenni](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/cbenni/32/297_2.png) [@CBenni](https://staging-discuss.dev.twitch.com/u/CBenni)\
**Post date:** [October 10, 2017, 6:43pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/11 "2017-10-10T18:43:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [October 10, 2017, 6:45pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/12 "2017-10-10T18:45:45Z")

</div>

It doesn’t make a difference whether it’s /untimeout or /unban, does it?

---

<div class="post-metadata">

**Author:** ![CBenni](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/cbenni/32/297_2.png) [@CBenni](https://staging-discuss.dev.twitch.com/u/CBenni)\
**Post date:** [October 10, 2017, 6:50pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/13 "2017-10-10T18:50:52Z")

</div>

It just seemed weird, especially since there _is_ a functional difference between the two, but again, not super important or critical in any way.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [October 10, 2017, 6:54pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/14 "2017-10-10T18:54:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Equinoxbig](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/equinoxbig/32/3162_2.png) [@Equinoxbig](https://staging-discuss.dev.twitch.com/u/Equinoxbig)\
**Post date:** [October 11, 2017, 5:32pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/15 "2017-10-11T17:32:13Z")

</div>

Well thanks for the fix everything seems to work as intended !

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [November 10, 2017, 5:32pm UTC](https://staging-discuss.dev.twitch.com/t/args-always-null-moderation-pubsub/11544/16 "2017-11-10T17:32:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
