Class ChannelBanTopic
java.lang.Object
com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic<ModeratorEventList>
com.github.twitch4j.helix.webhooks.topics.ChannelBanTopic
public class ChannelBanTopic extends TwitchWebhookTopic<ModeratorEventList>
Notifies when a broadcaster bans or un-bans people in their channel.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic
TwitchWebhookTopic.UnknownTopic -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPATH -
Constructor Summary
Constructors Constructor Description ChannelBanTopic(@NonNull java.lang.String broadcasterId, java.lang.String userId)Notifies when a broadcaster bans or un-bans people in their channel. -
Method Summary
Modifier and Type Method Description java.lang.StringgetBroadcasterId()java.util.Optional<java.lang.String>getUserId()Methods inherited from class com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic
canEqual, equals, fromUrl, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
PATH
public static final java.lang.String PATH- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChannelBanTopic
public ChannelBanTopic(@NonNull @NonNull java.lang.String broadcasterId, java.lang.String userId)Notifies when a broadcaster bans or un-bans people in their channel.- Parameters:
broadcasterId- Required. The ID of the channel for which to monitor ban events.userId- Optional. Specifies the user ID of the moderator added or removed.
-
-
Method Details
-
getBroadcasterId
public java.lang.String getBroadcasterId()- Returns:
- The ID of the channel for which to monitor ban events.
-
getUserId
public java.util.Optional<java.lang.String> getUserId()- Returns:
- The user ID of the moderator added or removed.
-