@@ -11,31 +11,34 @@ public class TwitchChatMessageAuthor extends ChatMessageAuthor {
11
11
private final boolean broadcaster ;
12
12
private final boolean moderator ;
13
13
private final boolean subscriber ;
14
+ private final boolean vip ;
14
15
15
16
public TwitchChatMessageAuthor (String displayName ) {
16
17
super (displayName );
17
18
this .turbo = false ;
18
19
this .broadcaster = false ;
19
20
this .moderator = false ;
20
21
this .subscriber = false ;
22
+ this .vip = false ;
21
23
}
22
24
23
25
public TwitchChatMessageAuthor (String displayName , String color ) {
24
- this (displayName , color , false , false , false , false );
26
+ this (displayName , color , false , false , false , false , false );
25
27
}
26
28
27
- public TwitchChatMessageAuthor (String displayName , String color , boolean broadcaster , boolean moderator , boolean subscriber , boolean turbo ) {
29
+ public TwitchChatMessageAuthor (String displayName , String color , boolean broadcaster , boolean moderator , boolean subscriber , boolean turbo , boolean vip ) {
28
30
super (displayName , displayName , color );
29
31
this .turbo = turbo ;
30
32
this .broadcaster = broadcaster ;
31
33
this .moderator = moderator ;
32
34
this .subscriber = subscriber ;
35
+ this .vip = vip ;
33
36
}
34
37
35
38
/**
36
39
* @return true if the user has twitch turbo, false otherwise
37
40
*/
38
- public boolean isTrubo () {
41
+ public boolean isTurbo () {
39
42
return turbo ;
40
43
}
41
44
@@ -59,4 +62,11 @@ public boolean isModerator() {
59
62
public boolean isSubscriber () {
60
63
return subscriber ;
61
64
}
65
+
66
+ /**
67
+ * @return true if the user is a vip of the channel, false otherwise
68
+ */
69
+ public boolean isVIP () {
70
+ return vip ;
71
+ }
62
72
}
0 commit comments