New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #510
Comments
could you try without |
it shouldent make a diffrence, it is not inside or looking from a wait_for |
|
it works with just a normal send sleep and delete, i dont know the problem with the code i have |
Could you try to use |
did nothing with no error |
Try to uninstall the "latest" unstable version and then reinstall it, for me it works fine even if in a command. |
nothing |
and with the |
same error as before |
That's so weird because I cannot reproduce it. |
did you look at the pastebin code? |
a = await ctx.send("a", components=Button(style=ButtonStyle.DANGER, label="Test", custom_id="none"))
await a.delete() I was trying with this and it worked fine. |
for some reason it is only failing on that send |
does the other part has a wait_for? |
i did both, and it works with and without |
could you show your component code`? |
yny = interactions.Button(
style=interactions.ButtonStyle.SUCCESS,
label="Yes",
custom_id="yes",
)
ynn = interactions.Button(
style=interactions.ButtonStyle.DANGER,
label="No",
custom_id="no",
)
yn = [yny,ynn] my bad |
hm idk whats wrong then |
yeah its odd because it works everywhere else |
Is the message you're trying to delete a hidden message? |
It's not, you can look in the pastebin |
@Catalyst4222 no look at the code |
Any suggestions? |
i have the same issue with the .edit() method. It sends the message from the Context object, but then I fails to edit and log the same error message as you. |
Hiya! I noticed you included the |
@DeltaXWizard thought it woud shed some light but it didnt {'content': 'Do you wish to buy 2 AAPL with a total cost of 340.88?', 'tts': False, 'embeds': [], 'allowed_mentions': {}, 'components': [{'type': 1, 'components': [{'style': 3, 'label': 'Yes', 'custom_id': 'yes', 'type': 2}, {'style': 4, 'label': 'No', 'custom_id': 'no', 'type': 2}]}], 'flags': 0} |
It does thank you :) |
@DeltaXWizard that fixed it, thanks! |
Describe the bug
message should delete but cannot find id of message
Reproducing steps
These are the steps I took in order to produce this bug, which should be able to be reproduced for everyone else as well.
What's normally expected
The message should be deleted
What actually happened
Instead, I received this traceback error given from my Python terminal:
code:
https://pastebin.com/qfJU76TF
Versions
newest unstable
wait_for
The text was updated successfully, but these errors were encountered: