Class ChannelBanTopic


@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public class ChannelBanTopic extends TwitchWebhookTopic<ModeratorEventList>
Deprecated.
Twitch decommissioned this API; please migrate to EventSub
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()
      Deprecated.
      Returns:
      The ID of the channel for which to monitor ban events.
    • getUserId

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