Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- `owners_exempt` now defaults to [False][] for cooldowns.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it a global default or per-bucket lol


## [2.15.0] - 2023-05-31
### Added
- [dependencies.add_cooldown][tanjun.dependencies.limiters.add_cooldown] and
Expand Down
6 changes: 3 additions & 3 deletions tanjun/dependencies/limiters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def __init__(
str, collections.Mapping[str, str]
] = "This command is currently in cooldown. Try again {cooldown}.",
unknown_message: typing.Union[str, collections.Mapping[str, str], None] = None,
owners_exempt: bool = True,
owners_exempt: bool = False,
) -> None:
"""Initialise a pre-execution cooldown command hook.

Expand Down Expand Up @@ -1177,7 +1177,7 @@ def with_cooldown(
] = "This command is currently in cooldown. Try again {cooldown}.",
unknown_message: typing.Union[str, collections.Mapping[str, str], None] = None,
follow_wrapped: bool = False,
owners_exempt: bool = True,
owners_exempt: bool = False,
) -> collections.Callable[[_CommandT], _CommandT]:
"""Add a pre-execution hook used to manage a command's cooldown through a decorator call.

Expand Down Expand Up @@ -1247,7 +1247,7 @@ def add_cooldown(
str, collections.Mapping[str, str]
] = "This command is currently in cooldown. Try again {cooldown}.",
unknown_message: typing.Union[str, collections.Mapping[str, str], None] = None,
owners_exempt: bool = True,
owners_exempt: bool = False,
) -> None:
"""Add a pre-execution hook used to manage a command's cooldown.

Expand Down