aboutsummaryrefslogtreecommitdiff
path: root/discord/embeds.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Embed.from_dict typing being too strict for a public functionRapptz2021-08-241-2/+2
| | | | | The Embed TypedDict is not publicly accessible so would always lead to type errors upon usage.
* Localize Embed.timestamp during assignment thegamecracks2021-06-281-3/+5
|
* Add Embed.remove_footerArnav Jindal2021-06-071-0/+15
|
* Fix bug in Embed.__len__ caused by footer without textMikey2021-05-271-3/+3
|
* [docs] Fix various unresolved referencesNadir Chowdhury2021-04-151-1/+1
|
* Use Any instead of str for Embed typings for accuracyRapptz2021-04-081-10/+10
|
* [docs] add note for possible Embed.type stringsSebastian Law2021-04-071-0/+2
|
* Rename discord.types file based on relevant core module fileRapptz2021-04-071-1/+1
|
* Typehint discord.Embed and introduce discord.types subpackageRapptz2021-04-071-92/+155
| | | | | | | | The discord.types subpackage is currently only used to do type hinting of API payloads, it's very much incomplete right now and it'll be a rather long process. discord.Embed was typehinted and formatted using black.
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+4
|
* Add Embed.__bool__Rapptz2021-04-071-0/+22
| | | | Fixes #6661
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-1/+5
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Modernize code to use f-stringsRapptz2021-04-041-5/+4
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Implicitly cast Embed construction parameters to strpikaninja2021-03-241-0/+18
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Fix error when trying to clear empty image/thumbnail in embedsDan Hess2020-08-071-2/+8
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-7/+7
|
* Allow clearing the author information in embeds.jack11422020-05-231-0/+15
|
* Prepare for the discord.com domain renameRapptz2020-05-231-1/+1
|
* allow passing EmptyEmbed to set_image and set_thumbnailRiley Shaw2020-05-021-6/+18
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-5/+5
| | | | Closes #2510
* Improve documentationNCPlayz2019-06-071-3/+2
|
* Grammar fixes for notes on EmbedProxyDante Dam2019-05-231-3/+3
|
* Add an insert_field_at method for the embed classKyber2019-05-231-0/+33
|
* Mention what can be done during initialisation in embeds.Rapptz2019-05-071-3/+6
|
* Organise documentationNCPlayz2019-03-191-15/+15
|
* Fix NameError in Embed.to_dictRapptz2019-03-171-1/+1
|
* Fix embed to_dict timestamp handling for python 3.5Michael H2019-03-171-1/+4
| | | | resolves #1992
* Fix Embed.to_dict to work with TZ aware datetime objects.Rapptz2019-03-151-1/+1
|
* Add Embed.copy to do a copy on an embed object.Rapptz2019-03-131-0/+4
|
* Add Embed.__len__ to query total character size of an embed.Rapptz2019-03-131-0/+31
|
* Expose Embed.from_data as Embed.from_dictRapptz2019-03-131-1/+15
| | | | This is a breaking change.
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-1/+1
| | | | Adjust whitespace to be consistent with the rest of the library.
* Add intersphinxTobotimus2018-01-061-9/+9
|
* Update embed property doc grammarSteve C2017-08-291-6/+6
|
* Simplify embed timestamp code due to it being fixed Discord side.Rapptz2017-07-091-8/+1
| | | | See https://github.com/hammerandchisel/discord-api-docs/issues/291
* Make checking for truth-ness of EmbedProxy easier.Rapptz2017-06-161-0/+3
|
* Handle aware datetimes in embeds.Rapptz2017-03-131-2/+9
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add missing fields to Embed.from_data()Ian Salmons2017-01-081-1/+1
|
* Move message creation to a factory method inside ConnectionState.Rapptz2017-01-031-3/+2
|
* Absolute import some circular dependencies to appease Python 3.4.Rapptz2017-01-031-2/+3
|
* Make discord.Embed builder more strict and easier to use.Rapptz2016-11-221-70/+147
| | | | | | | | | | | | | | | | Allow for easier use when trying to "reuse" the same discord.Embed object by providing new methods such as Embed.clear_fields, Embed.set_field_at, and allowing you to set things to Embed.Empty to clear out an attribute. For ease of use, things are automatically casted to ``str`` to prevent the user from having HTTP 400 errors if they forgot to do so. The new embed builder also supports "fluent-style" interface to allow you to chain methods in a single line if necessary. Certain parameters were removed since they were ignored by Discord anyway such as `width` and `height` in Embed.set_image and Embed.set_thumbnail.
* Add support for rich embeds.Rapptz2016-11-131-0/+398