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 missing embeds parameter #78

Open
wants to merge 1 commit into
base: developer
Choose a base branch
from

Conversation

klappstuhlpy
Copy link

This PR fixes the missing embeds parameter thats not passed through the handle_interaction_message_parameters function correctly.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @klappstuhlpy - I've reviewed your changes and they look great!

General suggestions:

  • Consider adding logic to handle cases where both embed and embeds parameters are provided to avoid potential conflicts or unexpected behavior.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -810,6 +810,7 @@ async def edit(
content=content,
flags=flags,
embed=embed,
embeds=embeds,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (edge_case_not_handled): Ensure handling of both embed and embeds parameters gracefully.

Given that both embed and embeds are now part of the parameters, it's important to ensure that the function can handle cases where both are provided, potentially merging them or prioritizing one over the other to avoid unexpected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant