# How to get user id or display name from message?

**URL:** <https://discuss.dev.twitch.com/t/how-to-get-user-id-or-display-name-from-message/20437>\
**Category:** API\
**Created:** [March 10, 2019, 8:27am UTC](https://discuss.dev.twitch.com/t/how-to-get-user-id-or-display-name-from-message/20437 "2019-03-10T08:27:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimhs5730](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@kimhs5730](https://discuss.dev.twitch.com/u/kimhs5730)\
**Post date:** [March 10, 2019, 8:27am UTC](https://discuss.dev.twitch.com/t/how-to-get-user-id-or-display-name-from-message/20437/1 "2019-03-10T08:27:07Z")

</div>

I just want to make hello message including the caller’s display name, but I cant find anything useful.  
How can I get user id or display name from message?? i mean the chatting

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [March 10, 2019, 11:07am UTC](https://discuss.dev.twitch.com/t/how-to-get-user-id-or-display-name-from-message/20437/2 "2019-03-10T11:07:59Z")

</div>

Sounds like you mean chat

DisplayName is in tags

> **[Twitch IRC Tags](https://dev.twitch.tv/docs/irc/tags/#privmsg-twitch-tags)**
>
> Twitch IRC Tags Most IRC messages provide enough information that you can figure out what happened. For example, in the following PRIVMSG message, you know that user abc posted HeyGuys in the xyz channel. :abc!abc@abc.tmi.twitch.tv PRIVMSG #xyz...

---

<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:** [April 9, 2019, 11:08am UTC](https://discuss.dev.twitch.com/t/how-to-get-user-id-or-display-name-from-message/20437/3 "2019-04-09T11:08:00Z")

</div>

Closed on April 9, 2019, 11:08am UTC

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