Skip to content

Commit

Permalink
fix: TypeError when adding skus to entitlements() method (#2628)
Browse files Browse the repository at this point in the history
* Fix #2627

Signed-off-by: UnBonWhisky <[email protected]>

* Update CHANGELOG.md

Signed-off-by: UnBonWhisky <[email protected]>

* Update CHANGELOG.md

Signed-off-by: UnBonWhisky <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update CHANGELOG.md

Signed-off-by: plun1331 <[email protected]>

---------

Signed-off-by: UnBonWhisky <[email protected]>
Signed-off-by: plun1331 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: plun1331 <[email protected]>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent 7e7cbdd commit 05cf45e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05cf45e

Please sign in to comment.