Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pajlada
Copy link

@pajlada pajlada commented Feb 8, 2025

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Problem/Feature

This change allows a user to customize not only the ToUser ID & FromUserID, but also the accompanying Name fields that get sent through fake eventsub/websocket triggers.
Example usage: twitch-cli event trigger channel.ban --transport=websocket --to-user 11148817 --to-user-name pajlada

Description of Changes:

This change adds the two command line flags to the twitch-cli event trigger command:

  • --to-user-name to accompany the already-existing --to-user flag
  • --from-user-name to accompany the already-existing --from-user flag

Both new flags are optional, and not specifying them will mean no change in payloads.

Checklist

  • My code follows the Contribution Guide
  • I have self-reviewed the changes being requested
  • I have made comments on pieces of code that may be difficult to understand for other editors
  • I have updated the documentation (if applicable)

Example usage: `twitch-cli event trigger channel.ban --transport=websocket --to-user 11148817 --to-user-name pajlada`
@pajlada pajlada force-pushed the feat/allow-customizing-to-and-from-name branch from dc37a04 to dd9a1c1 Compare February 8, 2025 12:03
@pajlada pajlada marked this pull request as ready for review February 8, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant