Package com.github.twitch4j.chat.util
Class TwitchChatLimitHelper
java.lang.Object
com.github.twitch4j.chat.util.TwitchChatLimitHelper
Utility class for retrieving standard rate limits for
TwitchChat- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final io.github.bucket4j.BandwidthKnown botsstatic final List<io.github.bucket4j.Bandwidth>Known botsstatic final Stringstatic final io.github.bucket4j.BandwidthUsers sending commands or messages to channels in which they have Moderator or Operator statusstatic final io.github.bucket4j.BandwidthAuthentication rate for usersstatic final io.github.bucket4j.BandwidthJoin rate for usersstatic final io.github.bucket4j.BandwidthUsers sending commands or messages to channels in which they do not have Moderator or Operator statusstatic final List<io.github.bucket4j.Bandwidth>Users (not bots)static final io.github.bucket4j.BandwidthAuthentication rate for verified botsstatic final io.github.bucket4j.BandwidthJoin rate for verified botsstatic final io.github.bucket4j.BandwidthVerified botsstatic final List<io.github.bucket4j.Bandwidth>Verified botsstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic io.github.bucket4j.BucketcreateBucket(io.github.bucket4j.Bandwidth limit) Deprecated.in favor of BucketUtilsstatic io.github.bucket4j.BucketcreateBucket(io.github.bucket4j.Bandwidth... limits) Deprecated.in favor of BucketUtilsstatic io.github.bucket4j.BucketcreateBucket(Iterable<io.github.bucket4j.Bandwidth> limits) Deprecated.in favor of BucketUtils
-
Field Details
-
MESSAGE_BANDWIDTH_ID
-
JOIN_BANDWIDTH_ID
-
AUTH_BANDWIDTH_ID
-
WHISPER_MINUTE_BANDWIDTH_ID
-
WHISPER_SECOND_BANDWIDTH_ID
-
USER_MESSAGE_LIMIT
public static final io.github.bucket4j.Bandwidth USER_MESSAGE_LIMITUsers sending commands or messages to channels in which they do not have Moderator or Operator status -
MOD_MESSAGE_LIMIT
public static final io.github.bucket4j.Bandwidth MOD_MESSAGE_LIMITUsers sending commands or messages to channels in which they have Moderator or Operator status -
KNOWN_MESSAGE_LIMIT
public static final io.github.bucket4j.Bandwidth KNOWN_MESSAGE_LIMITKnown bots -
VERIFIED_MESSAGE_LIMIT
public static final io.github.bucket4j.Bandwidth VERIFIED_MESSAGE_LIMITVerified bots -
USER_WHISPER_LIMIT
Users (not bots)Note: this does not implement the target user count restriction.
-
KNOWN_WHISPER_LIMIT
Known botsNote: this does not implement the target user count restriction.
-
VERIFIED_WHISPER_LIMIT
Verified botsNote: this does not implement the target user count restriction.
Note: this only applies to legacy verified bots (pre July 2021)
-
USER_JOIN_LIMIT
public static final io.github.bucket4j.Bandwidth USER_JOIN_LIMITJoin rate for users -
VERIFIED_JOIN_LIMIT
public static final io.github.bucket4j.Bandwidth VERIFIED_JOIN_LIMITJoin rate for verified bots -
USER_AUTH_LIMIT
public static final io.github.bucket4j.Bandwidth USER_AUTH_LIMITAuthentication rate for users -
VERIFIED_AUTH_LIMIT
public static final io.github.bucket4j.Bandwidth VERIFIED_AUTH_LIMITAuthentication rate for verified bots
-
-
Method Details
-
createBucket
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public static io.github.bucket4j.Bucket createBucket(io.github.bucket4j.Bandwidth limit) Deprecated.in favor of BucketUtils- Parameters:
limit- bandwidth- Returns:
- bucket
-
createBucket
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public static io.github.bucket4j.Bucket createBucket(io.github.bucket4j.Bandwidth... limits) Deprecated.in favor of BucketUtils- Parameters:
limits- bandwidths- Returns:
- bucket
-
createBucket
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public static io.github.bucket4j.Bucket createBucket(Iterable<io.github.bucket4j.Bandwidth> limits) Deprecated.in favor of BucketUtils- Parameters:
limits- bandwidths- Returns:
- bucket
-