CooldownTimesPer Reference#
- class cooldowns.CooldownTimesPer(limit: int, time_period: float, _cooldown: Cooldown)#
- __init__(limit: int, time_period: float, _cooldown: Cooldown) None #
- Parameters
Notes
This is an internal object. You do not need to construct it yourself.
- property fully_reset_at: Optional[datetime]#
When this bucket is fully reset.
- Returns
When this bucket fully resets.
- Return type
Optional[datetime.datetime]
Notes
This will return None if it is already fully reset.
- property has_cooldown: bool#
Is this instance currently tracking any cooldowns?
If this returns False we can safely delete this instance from the
Cooldown
lookup table.
- property next_reset: Optional[datetime]#
When the next window is freed.
- Returns
When the next window is freed.
None if there are no windows.
- Return type
Optional[datetime.datetime]