Webhook basic question

Super basic question: Can a user_id have more than one user_names ?

For some reason I thought they were a one to one, but I’m starting to think that one user_id can have multiple user_names associate with it. Is that correct?

A user can’t have multiple usernames. It is possible for a user to change their username but not have multiple at the same time.

An email can be on multiple user_ids

But a user_id can only have one user_name and one display_name where the display_name can be different from the user_name

Not sure how this applies to your title/topic “Webhook basic question”?

Well I was testing my code to subscribe to different users using the webhook, but then in my database I noticed two instance where two user names were assigned to the same user ID.

Here they are:

user_id: 139181164 contained 2 user_names:
nzurisana (https://www.twitch.tv/nzurisana says “Unless you’ve got a time machine, that content is unavailable”)
sana (https://www.twitch.tv/sana says “User Offline”)

Second example is
user_id: 237700531 contained 2 user_names
chayla_l (https://www.twitch.tv/chayla_l says “Unless you’ve got a time machine, that content is unavailable”)
colossalcake4 (https://www.twitch.tv/colossalcake4 says “User Offline”)

Am I to assume the “Unless you’ve got a time machine” user_names are old user_names that are dead and gone?

My records indicate both of those users changed usernames recently

sana on the 5th August
colossal on the 28th August

Thats why New API/Helix focusses more on UserID, so you track that rather than the username which can change.

So both of those users have changed usernames. And you didn’t account for that

How were you able to detect those changes?

You already did.

And there are a few tools online that log the changes.

hahahaha.

I guess you’re right.

Thanks for your help!

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