From 05cf45e064286bd99c87e663dd87bf31fd9cdf47 Mon Sep 17 00:00:00 2001 From: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:54:25 +0100 Subject: [PATCH] fix: TypeError when adding skus to entitlements() method (#2628) * Fix #2627 Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: plun1331 --------- Signed-off-by: UnBonWhisky <65244389+UnBonWhisky@users.noreply.github.com> Signed-off-by: plun1331 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 --- CHANGELOG.md | 2 ++ discord/http.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08cb7d9391..d77dee89d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +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` parameter in `Client.entitlements()`. + ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) ### Changed 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: