twitchdev / twitch-cli

The official Twitch CLI to make developing on Twitch easier.
Apache License 2.0
611 stars 71 forks source link

[Bug] channel.follow puts Broadcaster ID in Broadcaster User Login #310

Closed Xemdo closed 11 months ago

Xemdo commented 11 months ago

What is the problem?

When running the event channel.follow, the broadcaster_user_id value gets put in broadcaster_user_login:

{
  "subscription": {
    "id": "58ae210a-a2d5-f681-e6e5-5fe81133f467",
    "status": "enabled",
    "type": "channel.follow",
    "version": "2",
    "condition": {
      "broadcaster_user_id": "37885088",
      "moderator_user_id": "89702268"
    },
    "transport": {
      "method": "webhook",
      "callback": "null"
    },
    "created_at": "2024-01-05T18:55:29.2763678Z",
    "cost": 0
  },
  "event": {
    "user_id": "89702268",
    "user_login": "testFromUser",
    "user_name": "testFromUser",
    "broadcaster_user_id": "37885088",
    "broadcaster_user_login": "37885088",
    "broadcaster_user_name": "testBroadcaster",
    "followed_at": "2024-01-05T18:55:29.2763678Z"
  }
}

Operating System

All

Architecture Version (x86, x64, arm, etc)

All

Steps to reproduce

twitch event trigger channel.follow

Relevant log output

No response