-
-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging
Description
Summary
When calling entitlements() method with the skus argument, a TypeError is raised.
Reproduction Steps
Make a call with guild.entitlements(limit=None, skus=[<sku Object>])
Minimal Reproducible Code
No response
Expected Results
return all the entitlements that correspond to the SKU
Actual Results
It raises something like this TypeError: sequence item 0: expected str instance, int found
Intents
guilds, messages, reactions, message_content
System Information
- Python v3.12.2-final
- py-cord v2.6.1-final
- aiohttp v3.10.10
- system info: Linux 6.8.0-47-generic Add allowed_mentions to respond and author to context #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
The source code that raises the error is this one :
Line 3015 in 72ba1b1
params["sku_ids"] = ",".join(sku_ids) |
I have checked, edited and verified that if we edit this line into this one :
params["sku_ids"] = ",".join(str(sku_id) for sku_id in sku_ids)
The code works perfectly.
Metadata
Metadata
Assignees
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging