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

Remove EmbedBuilder -> Embed implicit conversion #801

Merged
merged 1 commit into from Aug 29, 2017

Conversation

Joe4evr
Copy link
Contributor

@Joe4evr Joe4evr commented Aug 27, 2017

Literally every time someone in the support channel wants to know how to modify a message's embed, they ask why the compiler tells them Cannot implicitly convert type 'Discord.EmbedBuilder' to 'Discord.Optional<Discord.Embed>'. Reason being that the C# compiler doesn't do double implicit conversion.

Therefor I believe we should force users to always .Build() their embeds explicitly, so people can stop hitting this issue of seeming inconsistency.

Copy link
Collaborator

@Auralytical Auralytical left a comment

Choose a reason for hiding this comment

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

LGTM - I've always been a fan of doing conversions like this explicitly.

Copy link
Member

@FiniteReality FiniteReality left a comment

Choose a reason for hiding this comment

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

I've never liked this implicit conversion in the first place; it's about time we decided to remove it.

@foxbot foxbot merged commit 94f7dd2 into discord-net:dev Aug 29, 2017
@Joe4evr Joe4evr deleted the RemoveEmbedBuilderImplicit branch August 29, 2017 20:53
FiniteReality pushed a commit to FiniteReality/Discord.Net that referenced this pull request May 5, 2018
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.

None yet

4 participants