aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify SnowflakeList type hintsRapptz2021-05-061-10/+2
|
* Fix various reference issues in documentationJosh2021-05-061-2/+2
| | | | Co-Authored-By: Riley Shaw <[email protected]>
* Fix SnowflakeList typingsRapptz2021-05-051-1/+16
|
* Add classproperty helper utilityRapptz2021-05-021-0/+9
| | | | This is apparently a 3.9+ only addition
* Fix typings for utils._parse_ratelimit_headerRapptz2021-05-011-1/+2
| | | | A CIMultiDict is not a Dict but a Mapping
* Fix utils.MISSING not evaluating to True in implicit bool contextsRapptz2021-04-301-0/+3
|
* Add utils.MISSINGNadir Chowdhury2021-04-291-0/+11
|
* [commands] Update error message for Literal float/complexOlivia2021-04-271-1/+1
|
* Split annotation resolution to discord.utilsRapptz2021-04-271-2/+103
|
* Add as_chunks helper functionJosh2021-04-251-0/+70
|
* Define utils.cached_property in if TYPE_CHECKING guardJosh2021-04-221-2/+5
|
* Fix some typings in utilsRapptz2021-04-201-13/+2
|
* Add a third overload to parse_timeRapptz2021-04-191-0/+6
| | | | | | | Apparently this behaviour is intended in Pyright https://github.com/microsoft/pyright/issues/1772 Despite mypy behaving as intended.
* Fix utils.find predicate typing to accept AnyRapptz2021-04-191-1/+1
|
* Fix up _unique and valid_icon_size implementationsRapptz2021-04-181-5/+2
|
* Add typings for discord.utilsRapptz2021-04-181-51/+131
|
* Cleanup some of the prior typings for cached_slot_propertyRapptz2021-04-181-23/+22
|
* Add typing for `utils.cached(_slot)_property` Nadir Chowdhury2021-04-181-16/+33
|
* Fix spelling error in utils.__all__Maya2021-04-111-1/+1
|
* Add typings for audit logs, integrations, and webhooks Nadir Chowdhury2021-04-101-2/+2
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+12
|
* Fix some regressions from create_task changeRapptz2021-04-061-1/+1
|
* Use `asyncio.create_task` over `asyncio.ensure_future`Nadir Chowdhury2021-04-051-1/+1
|
* Add discord.utils.utcnow() helper function to ease migrationRapptz2021-04-041-0/+15
|
* Remove special casing of MAX_ASYNCIO_SECONDS in sleep_untilRapptz2021-04-041-4/+0
| | | | This compatibility code goes away in Python versions greater than 3.7
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-15/+33
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Modernize code to use f-stringsRapptz2021-04-041-9/+7
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* [docs] copy signature from overridden and inherited methodsSebastian Law2021-03-291-1/+8
|
* Add remove_markdown helper functionEdwin2021-03-281-3/+39
|
* Add scopes to utils.oauth_urlNihaal Sangha2021-03-281-2/+7
|
* Fix references to snowflakes being max 21 longNihaal Sangha2021-03-021-1/+1
|
* Code optimisations and refactoring via SourceryNadir Chowdhury2021-02-241-4/+1
|
* Fix up previous PR mistake with intentional backslashesRapptz2021-02-211-2/+2
|
* Fix backslashes showing up in the docsSebastian Law2021-02-211-2/+2
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* [chore] Remove redundant importsNadir Chowdhury2020-11-281-2/+0
| | | This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
* Escape multi-line quotes properlyRapptz2020-10-171-2/+2
| | | | Fix #5897
* Add note pointing to discord.AllowedMentionsChristopherJHart2020-10-041-0/+6
|
* Fix NameError with resolving codes with TemplateNadir Chowdhury2020-07-311-1/+1
|
* Fix detection of some JPEG images without JFIF or Exif infoRapptz2020-07-211-1/+1
| | | | Closes #5143
* [docs] fix reference to `Guild` and document `utils.resolve_template`NCPlayz2020-07-081-2/+17
|
* [bugs] stop resolving Object for template/invite; remove dupe methodsNCPlayz2020-06-291-4/+4
|
* Add support for Discord templatesNadir Chowdhury2020-06-281-0/+11
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-1/+15
|
* Escape masked URLs; Support quotes for as_neededNCPlayz2020-06-171-2/+4
|
* Support discord.com/invite URL in resolve_inviteapple502j2020-06-041-1/+1
|
* Document that sleep_until considers naive datetimes as UTC.Rapptz2020-05-291-1/+2
|
* isinstance(x, y) and isinstance(x, z) -> isinstance(x, (y, z))NCPlayz2020-05-231-1/+1
|
* Prepare for the discord.com domain renameRapptz2020-05-231-1/+1
|
* Minor documentation fixesRapptz2020-01-211-2/+2
|