twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
72 stars 7 forks source link

moderator name is missing from chat_moderator_actions when warning a user #963

Open iProdigy opened 3 weeks ago

iProdigy commented 3 weeks ago

Brief description For the chat_moderator_actions pubsub topic: when moderation_action == "warn", the created_by string is empty (should be login name of the moderator)

How to reproduce

  1. Listen to chat_moderator_actions topic in the channel as a moderator
  2. Warn a user
  3. Capture the pubsub payload
{
  "type": "moderation_action",
  "data": {
    "args": [
      "djclancy",
      "70/30 pls"
    ],
    "created_at": "2024-06-13T22:59:09.818183498Z",
    "created_by": "",
    "created_by_user_id": "53888434",
    "moderation_action": "warn",
    "target_user_id": "268669435",
    "target_user_login": "djclancy",
    "id": "WARNING__53888434__268669435__1718319549818",
    "type": "chat_login_moderation"
  }
}

Expected behavior

The created_by field should contain the login name of the moderator that performed /warn

{
  "type": "moderation_action",
  "data": {
    "args": [
      "djclancy",
      "70/30 pls"
    ],
    "created_at": "2024-06-13T22:59:09.818183498Z",
    "created_by": "ogprodigy",
    "created_by_user_id": "53888434",
    "moderation_action": "warn",
    "target_user_id": "268669435",
    "target_user_login": "djclancy",
    "id": "WARNING__53888434__268669435__1718319549818",
    "type": "chat_login_moderation"
  }
}

Additional context or questions warning feature: https://x.com/TwitchSupport/status/1798403074350002447 originally reported in discord without response: https://discord.com/channels/504015559252377601/523676131879288834/1248055674693353552