Commit Graph
218 Commits
Author SHA1 Message Date
Alex Nørgaard 8bad09e1d8 Add Discord timestamp converter and transformer 2026-02-22 22:13:10 -05:00
Sacul 9be91cb093 Optimise utils.find and specialise utils.as_chunks 2025-11-18 19:51:27 -05:00
Michael H 8b15475496 [Zstandard] Decompress even when discord doesn't encode size information 2025-11-07 18:57:01 -05:00
Sacul 0ace5f8b51 Document new timestamp format style 2025-11-07 18:56:24 -05:00
beerpsi 62cb74b7d8 Do not assume Python 3.14 has compression.zstd 2025-10-28 07:50:33 -04:00
beerpsi 463becb7ed Use compression.zstd for gateway compression on Python 3.14 2025-10-08 17:33:29 -04:00
Rapptz 44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
Rapptz 8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
Michael HandDanny db7b2d9058 Change default file size limit
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-01-21 21:45:56 -05:00
Mysty 418a7915e6 Add raw presence update evemt 2025-01-21 04:49:50 -05:00
Dep b1b736971a Added scopeless kwarg to discord.utils.oauth_url 2025-01-17 04:13:59 -05:00
Rapptz 5c4c281f05 Sanitize invite argument before calling the invite info endpoint
Fixes a potential path traversal bug that can lead you to superfluously
and erroneously call a separate endpoint.
2024-11-23 21:48:45 -05:00
Andrin 20c543f672 Add support for message call 2024-10-10 05:21:59 -04:00
Lilly Rose Berner 91f300a28a Add zstd gateway compression to speed profile 2024-10-09 17:30:03 -04:00
Andrin a70217a719 Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
Jakub Kuczys aeab0d48fd Fix stacklevel for Message.interaction deprecation warning 2024-08-28 16:15:58 -04:00
Josh 9fab99acbc [commands] Add support for type statement and NewType 2024-05-05 01:45:32 -04:00
Josh 4e03b170ef Update pyright version 2024-02-20 13:36:02 -05:00
Rapptz f617d01eee Refactor human_join into its own private helper function 2023-09-30 13:11:29 -04:00
Rapptz e5da7f23cb Fix escape behaviour for lists and headers in escape_markdown
Fixes #9516
2023-08-01 21:25:47 -04:00
Rapptz e870bb1335 Add constant for the default file size limit 2023-05-19 21:21:37 -04:00
Rapptz c57d488ca6 Fix FileHandler having ANSI escapes when used within PyCharm 2023-04-25 00:19:20 -04:00
Andrin SandDanny 1767be0081 Add support for voice messages
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-04-20 00:08:04 -04:00
Andrin S 50f7b94656 Escape # and - in markdown utilities 2023-04-18 01:01:01 -04:00
Rapptz 93ed1646d2 Cleanup some private utilities in app_commands.commands 2023-02-02 00:33:18 -05:00
Rapptz 469f006d8b Formally document utils.maybe_coroutine 2023-01-16 21:00:58 -05:00
Rapptz 1700086f1a Enable colour logging for docker even if tty is not set 2023-01-01 06:13:44 -05:00
Tom e92a626662 Add Pycharm support to coloured logging 2022-10-27 10:06:29 -04:00
Jakub Kuczys d2c6a32543 Type hint support for slices and __index__ in SequenceProxy 2022-10-03 07:27:38 -04:00
Jakub Kuczys dc34a8f1dc Add repr to the SequenceProxy 2022-10-02 17:51:19 -04:00
Josh 0981f122af Add overloads to utils.sleep_until 2022-08-28 02:08:38 -04:00
Rapptz 2bf2bfc9b4 Add utils.setup_logging to help set up logging outside of Client.run 2022-08-17 22:53:03 -04:00
Rapptz 1c7747fe9d Fix nested Annotated calls not resolving 2022-08-17 10:41:57 -04:00
Rapptz f52a02359d Use built-in isascii instead of regex 2022-08-17 01:52:29 -04:00
Rapptz 596f2ca222 Fix time_snowflake not being documented 2022-08-15 14:01:54 -04:00
Rapptz 5b56899676 Change snowflake_time and time_snowflake parameters to pos/kw-only 2022-08-15 13:39:03 -04:00
James Hilton-Balfe e2d5791b67 Fix overload order on as_chunks 2022-08-14 17:32:07 -04:00
Rapptz 87bc79e6e3 Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.

This change should be mostly transparent.
2022-07-19 01:58:58 -04:00
Rapptz 98c4f2ae8b Fix utils.copy_doc being partially unknown 2022-07-19 01:36:18 -04:00
Harshal Laheri 20d3871290 Add return type hint for some functions 2022-07-15 00:15:42 -04:00
James Hilton-Balfe 3433e13848 Prioritise async iteration before sync iteration in utils.find/get 2022-07-07 19:30:21 -04:00
Rapptz c232631504 Refactor utils.oauth_url slightly 2022-06-13 04:49:32 -04:00
Miku ChanandDanny 40f12c8a00 Add state parameter to utils.oauth_url
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-06-13 03:17:43 -04:00
Josh c9f777c873 Fix type annotations to adhere to latest pyright release 2022-06-12 15:30:45 -04:00
Rapptz 500bf77103 Document and export MISSING sentinel 2022-04-28 07:52:23 -04:00
Bryan Forbes 06c257760b Update types to use Awaitable where possible 2022-03-30 22:00:24 -04:00
Bryan Forbes 8524bfb54d Fix caching of UnionType instead of resolved typing.Union 2022-03-28 16:24:03 -04:00
Rapptz aa18e573c3 Mark MISSING as hashable to allow it to be used in dataclasses in 3.11 2022-03-14 05:45:58 -04:00
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 0ef369c0fa [commands] Automatically unload top level app commands in extensions 2022-03-12 09:24:26 -05:00