Skip to content

Commit

Permalink
add communityGiftId to subMysteryGift
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Nov 15, 2023
1 parent 036f703 commit 65959a4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Sources/TwitchIRC/IncomingMessage/UserNotice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ public struct UserNotice: MessageWithBadges {
public var goalTargetContributions: String
public var goalUserContributions: String
public var giftTheme: String

public var communityGiftId: String

internal init(
massGiftCount: UInt,
originId: String,
Expand All @@ -294,7 +295,8 @@ public struct UserNotice: MessageWithBadges {
goalDescription: String,
goalTargetContributions: String,
goalUserContributions: String,
giftTheme: String
giftTheme: String,
communityGiftId: String
) {
self.massGiftCount = massGiftCount
self.originId = originId
Expand All @@ -306,6 +308,7 @@ public struct UserNotice: MessageWithBadges {
self.goalTargetContributions = goalTargetContributions
self.goalUserContributions = goalUserContributions
self.giftTheme = giftTheme
self.communityGiftId = communityGiftId
}

public init() {
Expand All @@ -319,7 +322,8 @@ public struct UserNotice: MessageWithBadges {
goalDescription: String(),
goalTargetContributions: String(),
goalUserContributions: String(),
giftTheme: String()
giftTheme: String(),
communityGiftId: String()
)
}
}
Expand Down Expand Up @@ -702,7 +706,8 @@ public struct UserNotice: MessageWithBadges {
goalDescription: parser.string(for: "msg-param-goal-description"),
goalTargetContributions: parser.string(for: "msg-param-goal-target-contributions"),
goalUserContributions: parser.string(for: "msg-param-goal-user-contributions"),
giftTheme: parser.string(for: "msg-param-gift-theme")
giftTheme: parser.string(for: "msg-param-gift-theme"),
communityGiftId: parser.string(for: "msg-param-community-gift-id")
))
occasionalSubDependentKeyGroups = [["msg-param-goal-description"], ["msg-param-sender-count"], ["msg-param-goal-contribution-type", "msg-param-goal-current-contributions", "msg-param-goal-description", "msg-param-goal-target-contributions", "msg-param-goal-user-contributions"], ["msg-param-gift-theme"]]
case "primepaidupgrade":
Expand Down

0 comments on commit 65959a4

Please sign in to comment.