-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
'Embed.author.name' positional argument #2052
Comments
Well if author isn't defined when you send the embed, it's obvious that it fails. But I might be wrong. @Om1609 what do you think |
If author was not defined then it should return EmbedEmpty or None, not raise an error. Shouldn't name be optional here? https://github.com/Pycord-Development/pycord/blob/master/discord/embeds.py#L125 Same for text here https://github.com/Pycord-Development/pycord/blob/master/discord/embeds.py#L154 |
I don't believe they should be optional, we should figure out why name is missing |
What was the behavior previously like? |
Fixes #2052 Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Docs state |
* fix: add defaults to __init__s on embed classes Fixes #2052 Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Summary
Trying to retrieve the
embed.author.name
returns missing positional argument.Reproduction Steps
embed.author.name
Missing 1 required positional argument: 'name'
errorMinimal Reproducible Code
Expected Results
Return of
Author
orEmbedEmpty
Actual Results
Intents
all
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: