diff --git a/CHANGELOG.md b/CHANGELOG.md index 047ebd159d..48609d7988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -239,6 +239,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2345](https://github.com/Pycord-Development/pycord/pull/2345)) - Fixed `Thread.me` being out of date and added the thread owner to `Thread.members` on creation. ([#1296](https://github.com/Pycord-Development/pycord/issues/1296)) +- Fixed keyword argument wildcard of `bridge.has_permissions` having the wrong type + hint. ([#2364](https://github.com/Pycord-Development/pycord/pull/2364)) ## [2.4.1] - 2023-03-20 diff --git a/discord/ext/bridge/core.py b/discord/ext/bridge/core.py index 4350a1e4e4..b1a37b3980 100644 --- a/discord/ext/bridge/core.py +++ b/discord/ext/bridge/core.py @@ -525,7 +525,7 @@ def predicate(func: Callable | ApplicationCommand): return predicate -def has_permissions(**perms: dict[str, bool]): +def has_permissions(**perms: bool): r"""Intended to work with :class:`.SlashCommand` and :class:`BridgeCommand`, adds a :func:`~ext.commands.check` that locks the command to be run by people with certain permissions inside guilds, and also registers the command as locked behind said permissions.