dolfies
8594dd1b30
Fix embed media flags regression
1 month ago
dolfies
cab4732b7e
Make embed flags required and add them to all media fields
1 month ago
DA344
8a95c0190c
Add support for embed flags and update attachment flags
Co-authored-by: Danny <[email protected] >
2 months ago
MajorTanya
a8134dfa16
Fix Embed type attribute ddocs link
2 months ago
Rapptz
3018fee443
Remove stale documentation in Embed.set_thumbnail
7 months ago
lmaotrigine
8104ff2ad4
[docs] Fix typehint for Embed.set_(image,thumbnail)
7 months ago
fretgfr
794f2bf149
[docs] correct hyperlink to discord docs
7 months ago
Rapptz
d3249445f3
Revert "Allow empty strings to be in Embed.to_dict"
This reverts commit a72fc7416c
.
Discord no longer allows this and the original rationale for allowing
this was weak to begin with.
2 years ago
Soheab_
a72fc7416c
Allow empty strings to be in Embed.to_dict
2 years ago
Rapptz
bc00bc495e
Document attachment:// URI more prominently in Embed docs
3 years ago
Vioshim
b80cb47caf
Implement Embed.__eq__ and EmbedProxy.__eq__
3 years ago
Rapptz
cf031f71b9
Add a new extlink for discord documentation
3 years ago
Jonah Lawrence
1451074d66
Return embed from clear_fields and remove_field
3 years ago
Vioshim
4ce60b4cac
Documented Embed limits in docstrings
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
Rapptz
c6ab67420e
Remove Embed.Empty in favour of None
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Josh
a315786869
Handle type-errors in upcoming pyright release
3 years ago
Rapptz
d01e73fca5
Document more uses of type ignore
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Rapptz
565b41b0b2
Fix Embed.from_dict typing being too strict for a public function
The Embed TypedDict is not publicly accessible so would always lead
to type errors upon usage.
4 years ago
thegamecracks
6ce1c537d4
Localize Embed.timestamp during assignment
4 years ago
Arnav Jindal
dd727fb6f4
Add Embed.remove_footer
4 years ago
Mikey
f42e922696
Fix bug in Embed.__len__ caused by footer without text
4 years ago
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
4 years ago
Rapptz
9da2f349e7
Use Any instead of str for Embed typings for accuracy
4 years ago
Sebastian Law
4c72137e43
[docs] add note for possible Embed.type strings
4 years ago
Rapptz
f49d565d51
Rename discord.types file based on relevant core module file
4 years ago
Rapptz
23fe6b46dd
Typehint discord.Embed and introduce discord.types subpackage
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.
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
ed1341012b
Add Embed.__bool__
Fixes #6661
4 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
pikaninja
5a93e80e87
Implicitly cast Embed construction parameters to str
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Dan Hess
e04bd1b3a1
Fix error when trying to clear empty image/thumbnail in embeds
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
jack1142
a601cf43ab
Allow clearing the author information in embeds.
5 years ago
Rapptz
66c6be50d8
Prepare for the discord.com domain rename
5 years ago
Riley Shaw
75d3c4f6cf
allow passing EmptyEmbed to set_image and set_thumbnail
5 years ago
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Dante Dam
84e9168447
Grammar fixes for notes on EmbedProxy
6 years ago
Kyber
f2c7b2e6d8
Add an insert_field_at method for the embed class
6 years ago
Rapptz
792b31833a
Mention what can be done during initialisation in embeds.
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago
Rapptz
4bd4c23694
Fix NameError in Embed.to_dict
6 years ago
Michael H
03616b91db
Fix embed to_dict timestamp handling for python 3.5
resolves #1992
6 years ago