From 22fbaee0f6e6a2b7d2b8cdf121dbbb30950e86fb Mon Sep 17 00:00:00 2001 From: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:53:03 +0100 Subject: [PATCH 1/6] Fix #2627 Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 26b584ba7e..1ca3135f8d 100644 --- a/discord/http.py +++ b/discord/http.py @@ -3012,7 +3012,7 @@ def list_entitlements( if user_id is not None: params["user_id"] = user_id if sku_ids is not None: - params["sku_ids"] = ",".join(sku_ids) + params["sku_ids"] = ",".join(str(sku_id) for sku_id in sku_ids) if before is not None: params["before"] = before if after is not None: From 66184524d9d0025d76a0ee601035354b9393b7bf Mon Sep 17 00:00:00 2001 From: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:23:05 +0100 Subject: [PATCH 2/6] Update CHANGELOG.md Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index daf082ae66..7de7537841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2595](https://github.com/Pycord-Development/pycord/pull/2595)) - Fixed `BucketType.category` cooldown commands not functioning correctly in private channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603)) + Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` method. + ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed From 68126d194ea1acdb4bd33ba9f2b9b703da3eb3f3 Mon Sep 17 00:00:00 2001 From: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:23:28 +0100 Subject: [PATCH 3/6] Update CHANGELOG.md Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de7537841..fd75ff9c19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,7 +48,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2595](https://github.com/Pycord-Development/pycord/pull/2595)) - Fixed `BucketType.category` cooldown commands not functioning correctly in private channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603)) - Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` method. +- Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` method. ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed From f976f2407554515206025cfb53db21cd8db1dcc8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 08:23:54 +0000 Subject: [PATCH 4/6] 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 fd75ff9c19..b016319a74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,8 +48,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2595](https://github.com/Pycord-Development/pycord/pull/2595)) - Fixed `BucketType.category` cooldown commands not functioning correctly in private channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603)) -- Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` method. - ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) +- Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` + method. ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed From 7ce7bc3f9850c3b967315104da377209386f825d Mon Sep 17 00:00:00 2001 From: plun1331 Date: Tue, 29 Oct 2024 10:19:09 -0700 Subject: [PATCH 5/6] Update CHANGELOG.md Signed-off-by: plun1331 --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee14831ebb..923f0dab13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,8 +50,8 @@ These changes are available on the `master` branch, but have not yet been releas channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603)) - Fixed `SlashCommand`'s `ctx` parameter couldn't be `Union` type. ([#2611](https://github.com/Pycord-Development/pycord/pull/2611)) -- Fixed `TypeError` when passing `skus` argument with a SKU list in `entitlements()` - method. ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) +- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`. + ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed From 01ef4465313380aac8370e2275219b7a556a6d3a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:19:31 +0000 Subject: [PATCH 6/6] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 923f0dab13..d77dee89d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ These changes are available on the `master` branch, but have not yet been releas channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603)) - Fixed `SlashCommand`'s `ctx` parameter couldn't be `Union` type. ([#2611](https://github.com/Pycord-Development/pycord/pull/2611)) -- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`. +- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`. ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed