aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add missing coroutine header for sleep_untilRapptz2020-01-211-1/+3
|
* Improve usability of utils.sleep_untilJosh B2020-01-211-2/+8
| | | | | | | | | 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
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-2/+2
|
* Add discord.utils.sleep_until helper functionJosh B2020-01-211-0/+18
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Be more explicit in the utils.find example code.alexandrianlibrarian2019-12-171-1/+1
|
* Fix more deprecation warningsRapptz2019-11-201-1/+4
|
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-2/+2
|
* Update regex to fetch URLs to match the official client.Rapptz2019-11-181-1/+1
| | | | Fixes #2420.
* Use X-Ratelimit-Reset-After header by default.Rapptz2019-08-271-4/+9
| | | | There is now an option to turn it off, of course.
* Use new rate limit millisecond precision option.Rapptz2019-08-271-1/+1
|
* Escape quote markdown in utils.escape_markdownRapptz2019-07-271-1/+1
|
* Add Guild.query_members to fetch members from the gateway.Rapptz2019-07-151-1/+3
|
* Improve documentationNCPlayz2019-06-071-14/+11
|
* Speed-up utils.get for the common casesRapptz2019-05-291-11/+21
|
* add read-only cached_messages property to Clientkhazhyk2019-04-171-0/+27
| | | | For those of us who want access to this sweet trove of zero hop messages
* Forgot to escape backticks.Rapptz2019-04-071-1/+1
|
* Add ignore_links and as_needed options to utils.escape_markdown.Rapptz2019-04-071-5/+30
| | | | | | This allows for URLs to be left alone since they can include markdown characters and allows for total escaping of all markdown characters by default to prevent some form of data manipulation.
* Fix regex substitution in utils.escape_mentionsRapptz2019-04-061-1/+1
|
* Add helpers to escape markdown and mentions from text.Rapptz2019-04-061-0/+40
| | | | Fixes #1673
* Add support for guild widgetNCPlayz2019-03-191-0/+26
|
* Organise documentationNCPlayz2019-03-191-6/+6
|
* Add support for guild bannersSnowyLuma2019-03-091-2/+2
| | | | | | | | Document banner attribute of Guild and Invite Update discord/utils.py Co-Authored-By: SnowyLuma <[email protected]>