# Response when message is invalid because of slow mode, subscriber mode etc

**URL:** <https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279>\
**Category:** Chat and IRC\
**Created:** [September 2, 2016, 10:21am UTC](https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279 "2016-09-02T10:21:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timsan90](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@timsan90](https://staging-discuss.dev.twitch.com/u/timsan90)\
**Post date:** [September 2, 2016, 10:21am UTC](https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279/1 "2016-09-02T10:21:54Z")

</div>

Hi!

I’m in the process of writing a Twitch plugin that uses the IRC API. Things are coming along pretty nicely but the one thing I can’t figure out is how to handle situations where sending a PRIVMSG to the channel is invalid. For instance, when a chat is in subscriber mode a text saying something like “Suscriber mode only, click here to subscribe” appears or if the chat is in slow mode it says that I can’t type a new message for x seconds. When sending a PRIVMSG to these channels however I don’t receive these types of messages back from the server, it just quietly swallows them. Is there any way I can recieve these messages and display them? Do I need to request them somehow? I could probably check to see if the channel is in sub mode only and manually display a similar message but that seems very error prone.

Thanks for any help!

---

<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:** [September 2, 2016, 1:01pm UTC](https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279/2 "2016-09-02T13:01:07Z")

</div>

The replies are NOTICEs so you need CAP REQ :twitch.tv/commands

---

<div class="post-metadata">

**Author:** ![timsan90](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@timsan90](https://staging-discuss.dev.twitch.com/u/timsan90)\
**Post date:** [September 2, 2016, 1:04pm UTC](https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279/3 "2016-09-02T13:04:15Z")

</div>

I’ve requested commands using CAP REQ :twitch.tv/commands and am recieveing NOTICEs like “This room is now in slow mode. You may send messages every 120 seconds.”. I’m not getting the messages that I mentioned in my first post.

---

<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:** [October 2, 2016, 1:04pm UTC](https://staging-discuss.dev.twitch.com/t/response-when-message-is-invalid-because-of-slow-mode-subscriber-mode-etc/7279/4 "2016-10-02T13:04:20Z")

</div>

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