# How can I check if a user has moderator privileges in a channel?

**URL:** <https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490>\
**Category:** API\
**Created:** [October 2, 2015, 6:39am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490 "2015-10-02T06:39:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamajac](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@yamajac](https://discuss.dev.twitch.com/u/yamajac)\
**Post date:** [October 2, 2015, 6:39am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/1 "2015-10-02T06:39:48Z")

</div>

Assuming the user’s not currently in the channel, is there anyway to check this? I didn’t see anything in the api, but I’m really hoping somebody’s maybe thought up an elegant workaround.

---

<div class="post-metadata">

**Author:** ![JB940](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@JB940](https://discuss.dev.twitch.com/u/JB940)\
**Post date:** [October 2, 2015, 8:41am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/2 "2015-10-02T08:41:36Z")

</div>

AFAIK the only way I know of to find out if a user is mod without him being there is using the irc, and calling /mods in the given room. If you’re already using API only I’m not sure I’d it’s worth the effort, otherwise you might want to use your IRC connection.

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [October 2, 2015, 2:13pm UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/3 "2015-10-02T14:13:48Z")

</div>

If you are in the web chat you could just display the user list by clicking it’s button of course.

[TMI/IRC Documentation](https://github.com/justintv/Twitch-API/blob/master/IRC.md)

On the TMI (irc type) connect, you would execute:

/raw CAP REQ :twitch.tv/membership  
Adds membership state event (NAMES, JOIN, PART, or MODE) functionality. By default we do not send this data to clients without this capability.

/raw CAP REQ :twitch.tv/commands  
Enables USERSTATE, GLOBALUSERSTATE, ROOMSTATE, HOSTTARGET, NOTICE and CLEARCHAT raw commands.

/raw CAP REQ :twitch.tv/tags  
Adds IRC v3 message tags to PRIVMSG, USERSTATE, NOTICE and GLOBALUSERSTATE (if enabled with commands CAP)

* * *

Twitch messaging interface (TMI) has it’s own API, but it’s not supported and can change at any time. You could request the list of active moderators from: [http://tmi.twitch.tv/group/user/:CHANNEL/chatters](http://tmi.twitch.tv/group/user/:CHANNEL/chatters)

Again, This API is not documented or supported. It is subject to change without notice.

---

<div class="post-metadata">

**Author:** ![yamajac](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@yamajac](https://discuss.dev.twitch.com/u/yamajac)\
**Post date:** [October 2, 2015, 9:41pm UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/4 "2015-10-02T21:41:21Z")

</div>

I was kinda hoping it’d be possible to check without using the IRC. I wish they’d add something like [http://api.twitch.tv/kraken/channels/:channel/moderators](http://api.twitch.tv/kraken/channels/:channel/moderators).

And @matt_thomas , as I said, they’re not _in_ the chat room, so that won’t work.

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [October 3, 2015, 12:18am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/5 "2015-10-03T00:18:46Z")

</div>

You don’t have to be in the channel.

> [@matt\_thomas](#):
>
> Twitch messaging interface (TMI) has it’s own API, but it’s not supported and can change at any time. You could request the list of active moderators from: [http://tmi.twitch.tv/group/user/:CHANNEL/chatters](http://tmi.twitch.tv/group/user/:CHANNEL/chatters)
> 
> Again, This API is not documented or supported. It is subject to change without notice.

[http://tmi.twitch.tv/group/user/kittyplaysgames/chatters](http://tmi.twitch.tv/group/user/kittyplaysgames/chatters)

---

<div class="post-metadata">

**Author:** ![tduva](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tduva/32/392_2.png) [@tduva](https://discuss.dev.twitch.com/u/tduva)\
**Post date:** [October 3, 2015, 12:53am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/6 "2015-10-03T00:53:57Z")

</div>

He means the user he wants to check whether it’s a moderator is not in the channel, so he won’t be in the list of active chatters/moderators.

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [October 3, 2015, 12:55am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/7 "2015-10-03T00:55:02Z")

</div>

Wow, I misread that. My bad for making an assumption. Guess I need some more sleep. He even italicized it. “they’re not in the chat room”

---

<div class="post-metadata">

**Author:** ![tehMorag](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tehmorag/32/1253_2.png) [@tehMorag](https://discuss.dev.twitch.com/u/tehMorag)\
**Post date:** [October 9, 2015, 9:46am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/8 "2015-10-09T09:46:39Z")

</div>

I ended up getting around this by calling for the list of editors for my channel  
[https://api.twitch.tv/kraken/channels/:channel/editors](https://api.twitch.tv/kraken/channels/:channel/editors) (need token)

Keeping in mind, you will need to add all your mods to the Editor list… It can be risky

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [November 8, 2015, 9:46am UTC](https://discuss.dev.twitch.com/t/how-can-i-check-if-a-user-has-moderator-privileges-in-a-channel/3490/9 "2015-11-08T09:46:49Z")

</div>

Closed on November 8, 2015, 9:46am UTC

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