From 44ad99a9eb8263515f0d1b828447dd6c04ef6d70 Mon Sep 17 00:00:00 2001 From: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:08:13 +0300 Subject: [PATCH 1/3] fix --- discord/ext/bridge/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From ec89020cd7a86d009dc3c971117f1ed2f4e3e95d Mon Sep 17 00:00:00 2001 From: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:12:54 +0300 Subject: [PATCH 2/3] chore: changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 047ebd159d..af3d5ea1fc 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 From 114767a8a98c97aeb12c390031cb8f55c865822b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:13:53 +0000 Subject: [PATCH 3/3] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af3d5ea1fc..48609d7988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -239,8 +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)) +- 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