mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-08-24 11:22:54 -04:00
commands.IntConverter Gives an Error
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4444dogs on GitHub (Jun 23, 2022).
Describe the bug
When you try to use
IntConverter()you get the following error.TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Context'To Reproduce
Expected behavior
Instead of an error, the function should return an
intvalue.Library version
@Zomatree commented on GitHub (Jun 23, 2022):
You are missing the
selfparameter, and you are suppose to typehintnum1andnum2withIntConverterinstead of manually calling it.@4444dogs commented on GitHub (Jun 23, 2022):
Thanks! I didn't realize it was something I was doing lol.