How to get user id or display name from message?

Sounds like you mean chat

DisplayName is in tags