Skip to content

feat: allow conversion to Member in MentionableConverter #2775

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Lumabots
Copy link

@Lumabots Lumabots commented May 2, 2025

Summary

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.

Lumabots added 3 commits May 3, 2025 00:37
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
@Lumabots
Copy link
Author

Lumabots commented May 2, 2025

fix of #2394

Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
@Lumabots Lumabots changed the title Bridge converter Fix: Ensure correct conversion of discord.Member in BridgeOption May 2, 2025
@Lumabots
Copy link
Author

Lumabots commented May 2, 2025

ready for review

@plun1331
Copy link
Member

plun1331 commented May 9, 2025

This isn't really a bug fix, more of a feature

@plun1331 plun1331 changed the title Fix: Ensure correct conversion of discord.Member in BridgeOption feat: allow conversion to Member in MentionableConverter May 9, 2025
@Lumabots
Copy link
Author

Lumabots commented May 9, 2025

This isn't really a bug fix, more of a feature

I'll edit the change then

Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Comment on lines +640 to +642
if input_type == discord.Member:
self.converter = MemberConverter()
else:
Copy link
Member

Choose a reason for hiding this comment

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

why'd this get put here? this should be handled by converter mappings

Copy link
Author

Choose a reason for hiding this comment

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

I followed this, if you prefer to make me do it differently, can you explain me how you would like it ?
#2394 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

well it's no different than just removing it since it's in BRIDGE_CONVERTER_MAPPING ALREADY

Copy link
Author

Choose a reason for hiding this comment

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

if someone can understand why without this init it doesnt work, feel free to help

Lumabots and others added 3 commits May 9, 2025 23:02
Co-authored-by: plun1331 <plun1331@gmail.com>
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants