Skip to content

[Bug] Count argument does not work for gifted subs #243

Description

@TMGMike

What is the problem?

According to the argument list (-h), you should be able to use either -c | --count int to specify how many gifts the event should contain. However, this argument doesn't seem to be respected, and instead it always contains 5 gifts.
image

Operating System

Windows 11

Architecture Version (x86, x64, arm, etc)

x64

Steps to reproduce

  1. Start websocket server using CLI
  2. Trigger a channel.subscription.gift event with no arguments, it'll contain 5 gifted subs.
  3. Trigger another channel.subscription.gift event, this time with the argument --count 1, and it will still contain 5 gifted subs.

Relevant log output

PS C:\Users\User> twitch event trigger channel.subscription.gift --count 1 --transport=websocket

✔ Forwarded for use in mock EventSub WebSocket server
{"subscription":{"id":"f7fd3122-3c7e-f262-f8bd-012c1175daa6","status":"enabled","type":"channel.subscription.gift","version":"1","condition":{"broadcaster_user_id":"85103678"},"transport":{"method":"websocket","session_id":"WebSocket-Server-Will-Set"},"created_at":"2023-06-24T11:41:56.125244Z","cost":0},"event":{"broadcaster_user_id":"85103678","broadcaster_user_login":"testBroadcaster","broadcaster_user_name":"testBroadcaster","cumulative_total":78,"is_anonymous":false,"tier":"1000","total":5,"user_id":"64266685","user_login":"testFromUser","user_name":"testFromUser"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions