Commit Graph

3075 Commits

Author SHA1 Message Date
e3037b32d5 Add changelog for v1.7.2 2021-05-02 23:39:21 -04:00
2793fc06d5 Clarify Webhook.send return value documentation 2021-05-02 18:21:11 -04:00
cd7357b93a Add classproperty helper utility
This is apparently a 3.9+ only addition
2021-05-02 08:05:52 -04:00
b0ec22065e Add Client.create_dm 2021-05-01 13:16:57 -04:00
83611edb66 Fix supressing messages leading a 400 error
This only makes it so allowed_mentions are passed if the message is
authored by the bot itself.
2021-05-01 11:46:27 -04:00
135a7e9e5a Reformat message.py file 2021-05-01 09:54:19 -04:00
d940486552 Add types to PartialMessage 2021-05-01 09:48:37 -04:00
4c97b8efdd Fix typings for utils._parse_ratelimit_header
A CIMultiDict is not a Dict but a Mapping
2021-05-01 09:24:47 -04:00
60c1240849 Fix SyncWebhook exception case causing attribute errors 2021-05-01 09:24:40 -04:00
02e21a8905 Fix sending multipart data with SyncWebhook
Fixes #6825
2021-05-01 09:21:39 -04:00
3381d1e089 Add typings for message related classes 2021-05-01 08:51:13 -04:00
e762f55847 Add fetch_invite with with_expiration 2021-05-01 07:46:16 -04:00
4fcbe75d3b Fix guild application command endpoints 2021-05-01 07:44:23 -04:00
51df7496db Add AuditLogChanges.rules_channel/public_updates_channel 2021-05-01 06:47:22 -04:00
b705173676 Add types for ApplicationCommandPermissions & co 2021-05-01 06:46:26 -04:00
66b17f5afb Clarify ClientUser.verified docs 2021-04-30 19:12:40 -04:00
a8945b5784 Fix grammar in the Guild.edit docstring 2021-04-30 19:08:45 -04:00
1a8d63d54f [commands] Remove Flag related delimiter and prefix error 2021-04-30 03:29:44 -04:00
58274eafbc [commands] Fix Generics causing other typing converters to fail 2021-04-30 01:23:56 -04:00
7b8db49efe Fix utils.MISSING not evaluating to True in implicit bool contexts 2021-04-30 01:05:01 -04:00
3b6a2b9e85 [commands] Fix Generic subcalsses used as a converter 2021-04-29 02:43:54 -04:00
cbbd31cc9f fix AttributeError in Sticker.image 2021-04-29 02:16:55 -04:00
c786a85a9b Add utils.MISSING 2021-04-29 01:58:36 -04:00
a2df6e81b8 [commands] Update error message for Literal float/complex 2021-04-27 22:04:18 -04:00
56f4ae3a83 [docs] Update notes for get_user and get_member 2021-04-27 21:56:00 -04:00
127b3239e9 Fix AttributeError in examples 2021-04-27 08:09:01 -04:00
9f3551926a Split annotation resolution to discord.utils 2021-04-27 05:48:27 -04:00
69da87f455 [commands] Disallow float/complex in Literal but allow None
Type checkers (both mypy and pydantic) apparently don't like it
2021-04-27 05:48:27 -04:00
b84717fc76 Make spelling of "colour" consistent in docs 2021-04-27 04:37:35 -04:00
f4a861d76e Add __int__ to discord.Colour 2021-04-26 21:38:20 -04:00
686e531624 Adjust quickstart to not show commands example 2021-04-26 21:37:44 -04:00
3c2674725a Add as_chunks helper function 2021-04-25 23:36:03 -04:00
d60689a983 Properly change abc.User.avatar type to Asset 2021-04-25 23:30:30 -04:00
20c2664a50 [docs] Remove extraneous icon definition 2021-04-25 19:21:09 -04:00
1765cdffb1 Use Asset for AuditLogChanges and add more entries 2021-04-25 09:53:38 -04:00
368fda7272 Remove HypesquadHouse enum from docs 2021-04-25 04:35:45 -04:00
4fbc78ba81 [commands] Add support for typing.Union to Flags 2021-04-25 04:35:19 -04:00
c250b9fc02 [commands] Fix regression with Union converters not working
This was due to the Literal restriction from earlier.
2021-04-24 09:33:35 -04:00
185b554a56 [commands] Disallow complicated Literal types 2021-04-24 09:12:28 -04:00
fb024546ff [commands] Fix Literal converter not working within flags 2021-04-24 08:55:55 -04:00
1c312a158a [commands] Add FlagConverter.__iter__ 2021-04-24 08:53:36 -04:00
829c2d4a1a Add Activity.buttons 2021-04-24 00:27:47 -04:00
91c473db57 [commands] Fix _HelpCommandImpl.clean_params popitem 2021-04-23 02:24:09 -04:00
8e9860077d [commands] Fix flag detection code in get_flags 2021-04-23 02:23:07 -04:00
e09f64b7c9 Fix typo in FlagConverter docs 2021-04-22 21:12:19 -04:00
e5607822d3 Define utils.cached_property in if TYPE_CHECKING guard 2021-04-22 21:11:56 -04:00
275a754abd Add support for editing message attachments 2021-04-21 23:45:06 -04:00
67abfea61a Add target_user and target_type to Invite objects 2021-04-21 23:30:35 -04:00
f4165755a9 Rename lingering _url Asset properties 2021-04-21 23:24:36 -04:00
a55e817ffe Fix documentation for RoleConverter 2021-04-21 23:24:04 -04:00