Skip to content

Commit

Permalink
add vip to userNotice
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Sep 19, 2023
1 parent 70f97da commit 6bbdb89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/TwitchIRC/IncomingMessage/UserNotice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ public struct UserNotice: MessageWithBadges {
public var color = String()
/// User's display name with uppercased/Han characters.
public var displayName = String()
/// User is VIP or not.
public var vip = Bool()
/// User's sent emotes.
public var emotes = String()
/// Flags of this notice.
Expand Down Expand Up @@ -794,6 +796,7 @@ public struct UserNotice: MessageWithBadges {
self.badges = parser.array(for: "badges")
self.color = parser.string(for: "color")
self.displayName = parser.string(for: "display-name")
self.vip = parser.bool(for: "vip")
self.emotes = parser.string(for: "emotes")
self.flags = parser.array(for: "flags")
self.id = parser.string(for: "id")
Expand Down

0 comments on commit 6bbdb89

Please sign in to comment.