Class ChannelChatNotificationEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable Announcement
Information about the announcement event.The user's visible badges in the chat room.@Nullable BitsBadge
Information about the bits badge tier event.@Nullable CharityDonation
Information about the charity donation event.getColor()
The color of the user's name in the chat room.@Nullable CommunitySubGift
Information about the community gift sub event.@Nullable GiftPaidUpgrade
Information about the community gift paid upgrade event.The structured chat message.A UUID that identifies the message.The type of notice.@Nullable GiftPayForward
Information about the pay it forward event.@Nullable Set<CommandPermission>
@Nullable PrimePaidUpgrade
Information about the Prime gift paid upgrade event.@Nullable Raid
getRaid()
Information about the raid event.@Nullable Resubscription
getResub()
Information about the resub event.@Nullable Announcement
Information about the announcement event.@Nullable CommunitySubGift
Information about the community gift sub event.@Nullable GiftPaidUpgrade
Information about the community gift paid upgrade event.@Nullable GiftPayForward
Information about the pay it forward event.@Nullable PrimePaidUpgrade
Information about the Prime gift paid upgrade event.@Nullable Raid
Information about the raid event.@Nullable Resubscription
Information about the resub event.@Nullable Subscription
Information about the sub event.@Nullable SubGift
Information about the gift sub event.The list of chat badges for the chatter in the channel the message was sent from.@Nullable String
The broadcaster user ID of the channel the message was sent from.@Nullable String
The login of the broadcaster of the channel the message was sent from.@Nullable String
The user name of the broadcaster of the channel the message was sent from.@Nullable String
The UUID that identifies the source message from the channel the message was sent from.@Nullable Subscription
getSub()
Information about the sub event.@Nullable SubGift
Information about the gift sub event.The message Twitch shows in the chat room for this notice.@Nullable Unraid
Information about the unraid event.int
hashCode()
Whether the chatter is anonymous.toString()
Methods inherited from class com.github.twitch4j.eventsub.events.ChannelChatUserEvent
getChatterUserId, getChatterUserLogin, getChatterUserName
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
ChannelChatNotificationEvent
public ChannelChatNotificationEvent()
-
-
Method Details
-
getPermissions
- Returns:
getBadges()
asCommandPermission
, ifgetBadges()
is not null.
-
isChatterAnonymous
Whether the chatter is anonymous. -
getColor
The color of the user's name in the chat room. -
getBadges
The user's visible badges in the chat room. -
getSystemMessage
The message Twitch shows in the chat room for this notice. -
getMessageId
A UUID that identifies the message. -
getMessage
The structured chat message. -
getNoticeType
The type of notice. -
getSourceBroadcasterUserId
The broadcaster user ID of the channel the message was sent from.Is null when the message happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.
-
getSourceBroadcasterUserName
The user name of the broadcaster of the channel the message was sent from.Is null when the message happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.
-
getSourceBroadcasterUserLogin
The login of the broadcaster of the channel the message was sent from.Is null when the message happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.
-
getSourceMessageId
The UUID that identifies the source message from the channel the message was sent from.Is null when the message happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.
-
getSourceBadges
The list of chat badges for the chatter in the channel the message was sent from.Is null when the message happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster.
-
getSub
Information about the sub event. Null ifgetNoticeType()
is notNoticeType.SUB
. -
getResub
Information about the resub event. Null ifgetNoticeType()
is notNoticeType.RESUB
. -
getSubGift
Information about the gift sub event. Null ifgetNoticeType()
is notNoticeType.SUB_GIFT
. -
getCommunitySubGift
Information about the community gift sub event. Null ifgetNoticeType()
is notNoticeType.COMMUNITY_SUB_GIFT
. -
getGiftPaidUpgrade
Information about the community gift paid upgrade event. Null ifgetNoticeType()
is notNoticeType.GIFT_PAID_UPGRADE
. -
getPrimePaidUpgrade
Information about the Prime gift paid upgrade event. Null ifgetNoticeType()
is notNoticeType.PRIME_PAID_UPGRADE
. -
getRaid
Information about the raid event. Null ifgetNoticeType()
is notNoticeType.RAID
. -
getUnraid
Information about the unraid event. Null ifgetNoticeType()
is notNoticeType.UNRAID
. -
getPayItForward
Information about the pay it forward event. Null ifgetNoticeType()
is notNoticeType.PAY_IT_FORWARD
. -
getAnnouncement
Information about the announcement event. Null ifgetNoticeType()
is notNoticeType.ANNOUNCEMENT
. -
getCharityDonation
Information about the charity donation event. Null ifgetNoticeType()
is notNoticeType.CHARITY_DONATION
. -
getBitsBadgeTier
Information about the bits badge tier event. Null ifgetNoticeType()
is notNoticeType.BITS_BADGE_TIER
. -
toString
- Overrides:
toString
in classChannelChatUserEvent
-
equals
- Overrides:
equals
in classChannelChatUserEvent
-
canEqual
- Overrides:
canEqual
in classChannelChatUserEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classChannelChatUserEvent
-