Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Conversation

de-odex
Copy link

@de-odex de-odex commented Apr 23, 2018

No description provided.

@@ -38,7 +38,7 @@ def __init__(self, bot : discordbot):
color = params.pop("color", Colors.get_default(self.bot))
if isinstance(color, Colors): color = color.value
e = embeds.build_embed(title=params.pop("title", ""), description=params.pop("message", params.pop("description", "")),
color=params.pop("color", Colors.get_default(self.bot)), **params)
color=color, **params)
Copy link
Owner

Choose a reason for hiding this comment

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

Why do this? The original will grab the color parameter passed, and if not passed use the default color. Yours will grab the color, and if it doesn't exist it can cause error or use discord's default as opposed to bot's default.

Copy link
Author

Choose a reason for hiding this comment

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

doesnt pop remove the element from the list? you already did it once at the top, doing it again will always return Colors.get_default(self.bot)

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

Successfully merging this pull request may close these issues.

2 participants