Skip to content
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

fix: add defaults to __init__s on embed classes #2061

Merged
merged 3 commits into from
May 9, 2023
Merged

fix: add defaults to __init__s on embed classes #2061

merged 3 commits into from
May 9, 2023

Conversation

plun1331
Copy link
Member

@plun1331 plun1331 commented May 9, 2023

Summary

Fixes #2052

Alternatively, add a different method that converts it from a dict to the class, to emphasise the defaulted parameters actually being required when sent to Discord

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

Fixes #2052 

Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com>
@plun1331 plun1331 added the bug Something isn't working label May 9, 2023
@plun1331 plun1331 requested a review from a team as a code owner May 9, 2023 04:21
plun1331 and others added 2 commits May 8, 2023 21:23
Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com>
@plun1331
Copy link
Member Author

plun1331 commented May 9, 2023

pullapprove requesting literally everyone for review

@plun1331
Copy link
Member Author

plun1331 commented May 9, 2023

(i tested)

@Lulalaby Lulalaby merged commit 6adc336 into master May 9, 2023
@Lulalaby Lulalaby deleted the fix-2052 branch May 9, 2023 11:02
Lulalaby added a commit that referenced this pull request May 9, 2023
OmLanke added a commit to OmLanke/pycord that referenced this pull request May 9, 2023
Lulalaby added a commit that referenced this pull request May 9, 2023
Revert "fix: add defaults to __init__s on embed classes (#2061)"

This reverts commit 6adc336.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Embed.author.name' positional argument
2 participants