-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
feat: add new parameters to discord.Embed
#1996
feat: add new parameters to discord.Embed
#1996
Conversation
for more information, see https://pre-commit.ci
discord.Embed
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1996 +/- ##
==========================================
- Coverage 33.33% 33.32% -0.01%
==========================================
Files 97 97
Lines 18900 18916 +16
==========================================
+ Hits 6300 6304 +4
- Misses 12600 12612 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, note the change in their respective properties.
Should we deprecate |
I think that's a good idea yes |
On second thought, I'd leave it in, you still have the |
No, not in every case you want to use the constructor. |
I mean, I don't really see the point in this but, idk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, embed.footer and embed.author should return their respective classes
Head branch was pushed to by a user without write access
65417f1
Not sure what |
it's a value returned by discord that proxies the image through their cdn iirc |
That's correct |
Summary
This PR adds parameters to
discord.Embed
as proposed in #1995.It also adds 2 new classes to support the latter. The classes are:
EmbedFooter
andEmbedAuthor
Example:
which produces
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.