Commit Graph

212 Commits

Author SHA1 Message Date
44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
db7b2d9058 Change default file size limit
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-01-21 21:45:56 -05:00
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
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
20c543f672 Add support for message call 2024-10-10 05:21:59 -04:00
91f300a28a Add zstd gateway compression to speed profile 2024-10-09 17:30:03 -04:00
a70217a719 Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
aeab0d48fd Fix stacklevel for Message.interaction deprecation warning 2024-08-28 16:15:58 -04:00
9fab99acbc [commands] Add support for type statement and NewType 2024-05-05 01:45:32 -04:00
4e03b170ef Update pyright version 2024-02-20 13:36:02 -05:00
f617d01eee Refactor human_join into its own private helper function 2023-09-30 13:11:29 -04:00
e5da7f23cb Fix escape behaviour for lists and headers in escape_markdown
Fixes #9516
2023-08-01 21:25:47 -04:00
e870bb1335 Add constant for the default file size limit 2023-05-19 21:21:37 -04:00
c57d488ca6 Fix FileHandler having ANSI escapes when used within PyCharm 2023-04-25 00:19:20 -04:00
1767be0081 Add support for voice messages
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-04-20 00:08:04 -04:00
50f7b94656 Escape # and - in markdown utilities 2023-04-18 01:01:01 -04:00
93ed1646d2 Cleanup some private utilities in app_commands.commands 2023-02-02 00:33:18 -05:00
469f006d8b Formally document utils.maybe_coroutine 2023-01-16 21:00:58 -05:00
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
d2c6a32543 Type hint support for slices and __index__ in SequenceProxy 2022-10-03 07:27:38 -04:00
dc34a8f1dc Add repr to the SequenceProxy 2022-10-02 17:51:19 -04:00
0981f122af Add overloads to utils.sleep_until 2022-08-28 02:08:38 -04:00
2bf2bfc9b4 Add utils.setup_logging to help set up logging outside of Client.run 2022-08-17 22:53:03 -04:00
1c7747fe9d Fix nested Annotated calls not resolving 2022-08-17 10:41:57 -04:00
f52a02359d Use built-in isascii instead of regex 2022-08-17 01:52:29 -04:00
596f2ca222 Fix time_snowflake not being documented 2022-08-15 14:01:54 -04:00
5b56899676 Change snowflake_time and time_snowflake parameters to pos/kw-only 2022-08-15 13:39:03 -04:00
e2d5791b67 Fix overload order on as_chunks 2022-08-14 17:32:07 -04:00
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
98c4f2ae8b Fix utils.copy_doc being partially unknown 2022-07-19 01:36:18 -04:00
20d3871290 Add return type hint for some functions 2022-07-15 00:15:42 -04:00
3433e13848 Prioritise async iteration before sync iteration in utils.find/get 2022-07-07 19:30:21 -04:00
c232631504 Refactor utils.oauth_url slightly 2022-06-13 04:49:32 -04:00
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
c9f777c873 Fix type annotations to adhere to latest pyright release 2022-06-12 15:30:45 -04:00
500bf77103 Document and export MISSING sentinel 2022-04-28 07:52:23 -04:00
06c257760b Update types to use Awaitable where possible 2022-03-30 22:00:24 -04:00
8524bfb54d Fix caching of UnionType instead of resolved typing.Union 2022-03-28 16:24:03 -04:00
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
0ef369c0fa [commands] Automatically unload top level app commands in extensions 2022-03-12 09:24:26 -05:00
adb69e7157 Fix some spelling mistakes 2022-03-10 20:45:16 -05:00
56e0c1b3d7 Fix typo in applications.commands scope 2022-03-09 20:26:53 -05:00
8213603822 Change default oauth_url scopes to include application.commands 2022-03-07 18:35:42 -05:00
4c8b1f9abd Remove unused imports 2022-03-05 21:40:42 -05:00
26fc694189 Fix Optional normalisation not working properly 2022-03-01 05:42:44 -05:00
3d0c506124 Fix test_resolve_invite due to changed type 2022-03-01 01:07:13 -05:00