Skip to content

Check that embed desc is not Empty before stripping.#1064

Merged
Den4200 merged 2 commits into
masterfrom
bug/1036/empty-embed-fields
Jul 23, 2020
Merged

Check that embed desc is not Empty before stripping.#1064
Den4200 merged 2 commits into
masterfrom
bug/1036/empty-embed-fields

Conversation

@kosayoda
Copy link
Copy Markdown
Contributor

Fixes #1036

I checked uses of embeds in other parts of the code to see if any of them perform methods on embed attributes, but couldn't find any. I might've missed something though.

The ones that use embed attributes as conditions (if not embed.url) are fine as Embed.Empty objects are falsy.

@kosayoda kosayoda requested a review from a team as a code owner July 23, 2020 07:28
@kosayoda kosayoda requested review from scragly and tagptroll1 and removed request for a team July 23, 2020 07:28
@ghost ghost added the needs 2 approvals label Jul 23, 2020
@kosayoda kosayoda added p: 3 - low Low Priority t: bug Something isn't working labels Jul 23, 2020
@ghost ghost removed the needs 1 approval label Jul 23, 2020
@Den4200 Den4200 merged commit 5528e6d into master Jul 23, 2020
@Den4200 Den4200 deleted the bug/1036/empty-embed-fields branch July 23, 2020 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p: 3 - low Low Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure Embed description is not Embed.Empty before stripping

3 participants