aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Add format_dt to utils __all__Vaskel2021-07-211-0/+1
|
* Refactor utcfromtimestamp to use fromtimestamp(..., tz=utc)Rapptz2021-07-091-1/+1
|
* Allow use of orjson instead of jsonRapptz2021-07-071-2/+21
| | | | | | | The difference in speed seems negligible at start up, which is when most time is taken for actually parsing JSON. I could potentially be missing something but profiling didn't point to any discernable difference.
* Ignore linting error when accessing Python 3.10 unionsRapptz2021-07-041-1/+1
|
* Add versionadded for format_dtRapptz2021-06-281-0/+2
|
* Add discord.utils.format_dt helper functionRapptz2021-06-281-0/+46
|
* Add disable_guild_select to utils.oauth_url()Soheab2021-06-271-13/+21
|
* Fix some webhook related type checker errorsRapptz2021-06-101-2/+2
|
* Add private get_slots utility to get slots through MRORapptz2021-05-281-0/+8
|
* Fix cached_slot_property typings againRapptz2021-05-231-2/+1
|
* [tasks] Add support for explicit time parameterSebastian Law2021-05-091-5/+9
|
* 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
|