976 results found
-
[BUG] Reward redemption UserInput text is always empty. When reading UserInput field of a CustomRewardEvent, the UserInput field is always empty.
[code]
using UnityEngine;
using TwitchSDK;
using TwitchSDK.Interop;public class SomeScript03 : MonoBehaviour
{
GameTask<EventStream<CustomRewardEvent>> reward01;async void Start() { reward01 = Twitch.API.SubscribeToCustomRewardEvents(); await reward01; } async void Update() { if(Input.GetKeyDown(KeyCode.Alpha1)) { if(reward01.MaybeResult != null) { CustomRewardEvent rwd01_event; if(reward01.MaybeResult.TryGetNextEvent(out rwd01_event)) { Debug.Log($"Name:{rwd01_event.CustomRewardTitle} | Text:{rwd01_event.UserInput}"); } } } }
}
[/code]Attach this script to a gameobject and enter Play Mode. Make sure you have a Custom Reward that takes user input. Redeem the reward and provide some user input to it. Then press the 1 key and the…
1 vote -
Unity Subscribe to Events code examples need changes. On the Unity Getting Started (https://dev.twitch.tv/docs/game-engine-plugins/unity-guide/) page, under Subscribe to Events, the examples might be a bit inaccurate. Here is the code for Channel Point Rewards:
GameTask<EventStream<CustomRewardEvent>> CustomRewardEvents;
start()
{
CustomRewardEvents = SubscribeToCustomRewardEvents();
}update()
{
var CurRewardEvent;
CustomRewardEvents.TryGetNextEvent(out CurRewardEvent);
if(CurRewardEvent != null)
{
//Do something
Debug.Log("{CurRewardEvent.RedeemerName} has brought {CurRewardEvent.CustomRewardTitle} for {CurRewardEvent.CustomRewardCost}!");
}
}Issues:
- void Start(), void Update().
- SubscribeToCustomRewardEvents() is a member of 'Twitch.API'. So it should be 'Twitch.API.SubscribeToCustomRewardEvents()'.
- 'var' variables are implicitely typed, so the line 'var CurRewardEvent;' throws an erorr. 'CustomRewardEvent CurRewardEvent;' would work.
- CustomRewardEvents task doesn't have TrgGetNextEvent() or WaitForEvent()…6 votes -
Add cumulative subscribed months for `channel.chat.notification` sub_gift notices sub_gift
notifications viachannel.chat.notification
events don't contain a field for the cumulative number of months the gift recipient has subscribed to the channel. This is however exposed in IRC via themsg-param-months
tag in the equivalent subgift USERNOTICE.Please, consider adding this information to Eventsub too for consistency
8 votes -
Twitch Chat Connection The plugin seems to have everything BUT a chat connection which is quite strange. It would be nice to have an access to chat like other events/functionnalities in the near futur
8 votes -
Extend moderation/block_terms to include term privacy (public|private) Extend the API ability to create a block_term with an optional value for privacy (default: public) as either public or private, as a user can with the web interface.
1 vote -
Financial Payout API Provide API to allow users, after validating their account:
- Return Payouts per date paid.
- Breakdown of what went into the payouts by type (Subscriptions, Bits, and the like)
- Withholdings and Fees
2 votes -
I'd love to reach out to someone just to ask a simple question or two! Discord Server or something please! Make a Discord server for this please!!
1 vote -
Cancellation Token support for the Unity plugin Something that would be incredibly helpful, given the Unity plugin’s heavy reliance on asynchronous tasks, is support for System.Threading.CancellationToken. Many of the user-initiated operations in my game are asynchronous in nature and can be cancelled or skipped by the user if they run for too long, so I make heavy use of Unity 2023’s async/await support and .NET's cancellation tokens to interrupt long-running HTTP requests and clean up resources. As it stands, I can check the cancellation token’s status before and after each call to the Twitch API, but if the calling method is cancelled externally during that time due…
1 vote -
Game Engine guide links are broken Links not working at this paragraph:
Building your first game
Great, now you’re ready to build your first game with Twitch. Head over to our Unity Guide, Unreal Blueprint Guide or Unreal C++ Guide to get started.1 vote -
Endpoint Scope Mismatch across Docs The scopes for "Update User Extensions" and "Get User Active Extensions" are different on differant pages.
On https://dev.twitch.tv/docs/authentication/scopes/ it's "channel:manage:extensions" but on https://dev.twitch.tv/docs/api/reference it's "user:edit:broadcast".
This feedback is related to another one I've posted, https://twitch.uservoice.com/forums/310213-developers/suggestions/47456123-missing-scope-user-edit-broadcast1 vote -
'Get Stream Key' Doc URL is missing Request Method The URL for endpoint "Get Stream Key" is missing the "GET" request Method in the reference documentation. This is the only endpoint with this issue.
https://dev.twitch.tv/docs/api/reference/#get-stream-key1 vote -
Wrong hyperlinks "Unity Guide" often links to "https://dev.twitch.tv/docs/game-engine-plugins/unityguide" which is not available. "https://dev.twitch.tv/docs/game-engine-plugins/unity-guide" is correct
4 votes -
nie wiem gggg
2 votes -
17 votes
-
Fix minor CLI event command typos The examples for --charity-current-value and --charity-target-value aren't right, they both say "--charity-current-amount 10000"
1 vote -
EventSub channel.chat.message improvements As of now, the new
channel.chat.message
notification is a nice addition to the EventSub system.
But I'd love to get some more information about the user sending the chat message, slightly similar to the IRC implementation but still less verbose.In comparison to the IRC, I miss some flags like
isVip
,isSubscriber
,isModerator
, maybe evenisEmoteDesigner
(?). I'd be also great to have something likeisFollower
, same for the IRC implementation.When developing a 3rd party system to allow broadcasters to implement chat commands, this would really improve the usability of this event messages and could…
4 votes -
All time user bits in cheers payload. Previously PubSub had a field called "bitstotalused" in a cheers payload that represented all-time user bits which is not currently available in EventSub events. This is an important data that I was using to cache data for custom leaderboards widget that requires any data prior to its existence. Unfortunately, to obtain this data you have to make a Leaderboard API call by user_id, which is really inconvenient.
2 votes -
Bad examples. I think all the above examples need to be reviewed as almost none work.
also requirements to us these flows is not mentioned , probably with good reason as building a secure web authentication server to use this flow is an insane ask of independent developers.3 votes -
zae no error
2 votes -
Fun Thank You
2 votes
- Don't see your idea?