Josh
|
e5607822d3
|
Define utils.cached_property in if TYPE_CHECKING guard
|
2021-04-22 21:11:56 -04:00 |
|
Rapptz
|
ac7588f735
|
Fix some typings in utils
|
2021-04-20 04:35:53 -04:00 |
|
Rapptz
|
3c8d3ab078
|
Add a third overload to parse_time
Apparently this behaviour is intended in Pyright
https://github.com/microsoft/pyright/issues/1772
Despite mypy behaving as intended.
|
2021-04-19 02:12:41 -04:00 |
|
Rapptz
|
bee6402d84
|
Fix utils.find predicate typing to accept Any
|
2021-04-19 02:11:38 -04:00 |
|
Rapptz
|
417353da4d
|
Fix up _unique and valid_icon_size implementations
|
2021-04-18 09:07:26 -04:00 |
|
Rapptz
|
b35596f7c8
|
Add typings for discord.utils
|
2021-04-18 08:43:09 -04:00 |
|
Rapptz
|
cc4dced7c0
|
Cleanup some of the prior typings for cached_slot_property
|
2021-04-18 08:07:11 -04:00 |
|
Nadir Chowdhury
|
18badbc60f
|
Add typing for utils.cached(_slot)_property
|
2021-04-18 07:56:38 -04:00 |
|
Maya
|
0f3f2cbeea
|
Fix spelling error in utils.__all__
|
2021-04-11 20:18:56 -04:00 |
|
Nadir Chowdhury
|
3e92196a2b
|
Add typings for audit logs, integrations, and webhooks
|
2021-04-10 02:53:24 -04:00 |
|
Nadir Chowdhury
|
89456022cf
|
Add __all__ to remaining modules
|
2021-04-07 02:30:32 -04:00 |
|
Rapptz
|
7e3c5f3faf
|
Fix some regressions from create_task change
|
2021-04-06 07:31:31 -04:00 |
|
Nadir Chowdhury
|
2ff24a27b5
|
Use asyncio.create_task over asyncio.ensure_future
|
2021-04-05 20:31:03 -04:00 |
|
Rapptz
|
a3a6f88936
|
Add discord.utils.utcnow() helper function to ease migration
|
2021-04-04 23:59:04 -04:00 |
|
Rapptz
|
93a92e6e1b
|
Remove special casing of MAX_ASYNCIO_SECONDS in sleep_until
This compatibility code goes away in Python versions greater than 3.7
|
2021-04-04 23:55:15 -04:00 |
|
Rapptz
|
ff7094ce96
|
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
|
2021-04-04 23:54:08 -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 |
|
Sebastian Law
|
d6501159e7
|
[docs] copy signature from overridden and inherited methods
|
2021-03-29 23:52:14 -04:00 |
|
Edwin
|
31ee3fafc1
|
Add remove_markdown helper function
|
2021-03-28 18:38:34 -04:00 |
|
Nihaal Sangha
|
a4d29e8cfd
|
Add scopes to utils.oauth_url
|
2021-03-28 06:33:24 -04:00 |
|
Nihaal Sangha
|
a3f700c11f
|
Fix references to snowflakes being max 21 long
|
2021-03-02 19:04:03 -05:00 |
|
Nadir Chowdhury
|
63ec23bac2
|
Code optimisations and refactoring via Sourcery
|
2021-02-24 21:26:51 -05:00 |
|
Rapptz
|
abfc07f968
|
Fix up previous PR mistake with intentional backslashes
|
2021-02-21 07:35:31 -05:00 |
|
Sebastian Law
|
a0c1d6f6c5
|
Fix backslashes showing up in the docs
|
2021-02-21 07:32:11 -05:00 |
|
Nihaal Sangha
|
69bdc3a184
|
Change copyright year to present
|
2021-01-15 05:28:11 -05:00 |
|
Nadir Chowdhury
|
6b803acde4
|
[chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
|
2020-11-28 03:16:49 -05:00 |
|
Rapptz
|
d9acc2f491
|
Escape multi-line quotes properly
Fix #5897
|
2020-10-17 01:36:31 -04:00 |
|
ChristopherJHart
|
f308f34db1
|
Add note pointing to discord.AllowedMentions
|
2020-10-04 22:52:00 -04:00 |
|
Nadir Chowdhury
|
6d88316767
|
Fix NameError with resolving codes with Template
|
2020-07-31 21:07:20 -04:00 |
|
Rapptz
|
4de01212a4
|
Fix detection of some JPEG images without JFIF or Exif info
Closes #5143
|
2020-07-21 22:56:51 -04:00 |
|
NCPlayz
|
3408695a37
|
[docs] fix reference to Guild and document utils.resolve_template
|
2020-07-08 23:01:00 -04:00 |
|
NCPlayz
|
ce03c62c6b
|
[bugs] stop resolving Object for template/invite; remove dupe methods
|
2020-06-29 16:58:19 +01:00 |
|
Nadir Chowdhury
|
2b3c6e0d47
|
Add support for Discord templates
|
2020-06-28 14:48:04 -04:00 |
|
Sebastian Law
|
b4b953bfc6
|
Fix various inconsistencies within the documentation (#5067)
|
2020-06-28 03:45:58 -04:00 |
|
NCPlayz
|
a2148d6d1a
|
Escape masked URLs; Support quotes for as_needed
|
2020-06-17 16:31:48 +01:00 |
|
apple502j
|
1ee23a235e
|
Support discord.com/invite URL in resolve_invite
|
2020-06-04 23:41:40 -04:00 |
|
Rapptz
|
cbdf660ddc
|
Document that sleep_until considers naive datetimes as UTC.
|
2020-05-29 02:59:31 -04:00 |
|
NCPlayz
|
f09162f259
|
isinstance(x, y) and isinstance(x, z) -> isinstance(x, (y, z))
|
2020-05-23 21:56:40 -04:00 |
|
Rapptz
|
66c6be50d8
|
Prepare for the discord.com domain rename
|
2020-05-23 21:44:30 -04:00 |
|
Rapptz
|
17f343b03e
|
Minor documentation fixes
|
2020-01-21 21:34:58 -05:00 |
|
Rapptz
|
706a333287
|
Add missing coroutine header for sleep_until
|
2020-01-21 20:39:15 -05:00 |
|
Josh B
|
d0a1956be9
|
Improve usability of utils.sleep_until
Fix issue where sleeping for an extended period on python 3.5
would cause an exception
Add sleep_until to API docs
Add result argument to sleep_until
|
2020-01-21 20:28:14 -05:00 |
|
Rapptz
|
02397306b2
|
Drop superfluous zero in version related changes in the documentation
|
2020-01-21 03:47:56 -05:00 |
|
Josh B
|
40369a493d
|
Add discord.utils.sleep_until helper function
|
2020-01-21 03:18:25 -05:00 |
|
Rapptz
|
6071607176
|
Bump copyright year to 2020
Closes #2510
|
2020-01-19 20:03:00 -05:00 |
|
alexandrianlibrarian
|
def012e281
|
Be more explicit in the utils.find example code.
|
2019-12-17 00:15:16 -05:00 |
|
Rapptz
|
4ef0fb0d95
|
Fix more deprecation warnings
|
2019-11-20 03:04:04 -05:00 |
|
Rapptz
|
a6f61dcbde
|
Fix all deprecation warnings for 3.8
|
2019-11-20 02:30:19 -05:00 |
|
Rapptz
|
a238c6178a
|
Update regex to fetch URLs to match the official client.
Fixes #2420.
|
2019-11-18 22:22:54 -05:00 |
|
Rapptz
|
ea3d119ca6
|
Use X-Ratelimit-Reset-After header by default.
There is now an option to turn it off, of course.
|
2019-08-27 18:41:32 -04:00 |
|