Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatCommunitySubGift missing property. #38

Open
Omsad opened this issue Dec 12, 2024 · 0 comments
Open

ChatCommunitySubGift missing property. #38

Omsad opened this issue Dec 12, 2024 · 0 comments

Comments

@Omsad
Copy link

Omsad commented Dec 12, 2024

According to the documentation, https://dev.twitch.tv/docs/eventsub/eventsub-reference/#channel-chat-notification-event and what is actually sent, ChatCommunitySubGift is missing a total property, e.g. should be:

/// <summary>
/// Information about the community gift sub event. Null if notice_type is not community_sub_gift.
/// </summary>
public sealed class ChatCommunitySubGift
{
    /// <summary>
    /// The ID of the associated community gift.
    /// </summary>
    public string Id { get; set; } = string.Empty;
    /// <summary>
    /// Number of subscriptions being gifted.
    /// </summary>
    public int Total { get; set; }
    /// <summary>
    /// The type of subscription plan being used. Possible values are:
    /// <para>1000 — First level of paid subscription</para>
    /// <para>2000 — Second level of paid subscription</para>
    /// <para>3000 — Third level of paid subscription</para>
    /// </summary>
    public string SubTier { get; set; } = string.Empty;
    /// <summary>
    /// Optional. The amount of gifts the gifter has given in this channel. Null if anonymous.
    /// </summary>
    public int? CumulativeTotal { get; set; }
}
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

No branches or pull requests

1 participant