24 Commits

Author SHA1 Message Date
Rapptz
3ff88db768 Update pyright to 1.1.289 2023-01-16 21:57:54 -05:00
Rapptz
5c14149873 Fix filename spoiler stripping method
lstrip does not work as expected
2022-04-01 15:25:03 -04:00
will
2010b42f6a
[docs] Fix capitalization typo in spoiler parameter documentation 2022-03-31 10:21:08 -04:00
Josh
c11363f037
Rework File.spoiler to synchronise with the filename
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-31 09:18:36 -04:00
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
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.
2022-02-20 08:04:58 -05:00
Josh
dede5539ee
Add support for editing message attachments 2022-02-19 22:02:53 -05:00
Josh
08bee0eeb6
Add support for file/attachment descriptions 2022-02-18 05:23:02 -05:00
Rapptz
fc66c5b92d Fix some webhook related type checker errors 2021-06-10 07:57:41 -04:00
Rapptz
2e12f6de9c Typehint File 2021-05-06 08:15:51 -04:00
Nadir Chowdhury
89456022cf
Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
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`.
2021-04-04 07:03:53 -04:00
Josh
fce67c32c9
Add spoiler attribute to File 2021-01-17 00:18:10 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present 2021-01-15 05:28:11 -05:00
TicClick
a4b20d08c3
Make File docstring raw for Python 3.9 compatibility 2020-12-11 03:22:36 -05:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
Rapptz
6071607176 Bump copyright year to 2020
Closes #2510
2020-01-19 20:03:00 -05:00
NCPlayz
3c9bcc2851 Improve documentation 2019-06-07 19:27:46 -04:00
Rapptz
5e65ec978c Take back ownership of files from aiohttp for retrying requests.
Fix #1809
2019-03-18 07:54:36 -04:00
Dante Dam
9656a21ebe Bumped copyright years to 2019. 2019-01-28 22:22:50 -05:00
Rapptz
93d576a65b Add support for spoiler attachments. 2018-12-14 19:09:25 -05:00
Tobotimus
3112e1c17e Add intersphinx 2018-01-06 17:23:59 -05:00
FrostLuma
e52532c06e Fix File not using the filename if given 2017-04-08 13:31:40 -04:00
Rapptz
bf2066278e Add support for multiple file attachments.
This is a breaking change. No longer does Messageable.send have a
filename keyword argument, instead this is all handled through the
discord.File model. To upload many files you must specify a list
of discord.File objects.
2017-04-08 03:33:21 -04:00