Class ChannelBanTopic


public class ChannelBanTopic extends TwitchWebhookTopic<ModeratorEventList>
Notifies when a broadcaster bans or un-bans people in their channel.
  • Field Details

  • Constructor Details

    • ChannelBanTopic

      @Deprecated public ChannelBanTopic(@NonNull @NonNull String broadcasterId, 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 String getBroadcasterId()
      Returns:
      The ID of the channel for which to monitor ban events.
    • getUserId

      public Optional<String> getUserId()
      Returns:
      The user ID of the moderator added or removed.