Commit Graph

3294 Commits

Author SHA1 Message Date
e96df33ce0 Dispatch thread_join when a thread is updated but not in cache 2021-06-28 18:56:28 -04:00
e3a66bcccc Fix property CSS to be more inline with everything else 2021-06-28 04:16:51 -04:00
039bb9f871 Move documentation CSS after CSS block 2021-06-28 03:44:22 -04:00
2ce44f7bd6 Add versionadded for format_dt 2021-06-28 03:36:16 -04:00
3c5c5fc274 Update documentation in voice_client.py 2021-06-28 03:10:33 -04:00
d1a2ee4620 Add discord.utils.format_dt helper function 2021-06-28 01:31:14 -04:00
a75cd93acc Fix Guild.vanity_invite causing an error when guild has it unset
FIx #7103
2021-06-28 01:03:46 -04:00
5acea453cc Type-hint voice_client / player 2021-06-28 00:59:14 -04:00
cd6b453cb3 Typehint Activity 2021-06-28 00:56:28 -04:00
4566b64d77 Fix Activity and Spotify datetime being timezone naive 2021-06-28 00:37:16 -04:00
b1836c5577 Rework Message.edit implementation 2021-06-28 00:33:59 -04:00
75477b2995 Fix incorrect typehints in Guild.create_role 2021-06-28 00:05:40 -04:00
2cd2d1d3ee [commands] Rename missing_perms to missing_permissions 2021-06-28 00:05:08 -04:00
f7b0ed7b12 Add ButtonStyle.gray alias 2021-06-28 00:01:13 -04:00
b59ec318c0 Fix Category.create_x_channel raising without overwrites 2021-06-28 00:00:51 -04:00
6ce1c537d4 Localize Embed.timestamp during assignment 2021-06-28 00:00:17 -04:00
caa9512a8a Make on_ready examples consistent 2021-06-27 23:59:17 -04:00
47e6a754e4 Add support for sending multiple embeds 2021-06-27 23:52:48 -04:00
8b7e5a50b4 Add discord.Spotify.track_url 2021-06-27 23:48:04 -04:00
1a3422dccc Handle role_id possibly being None for StreamIntegration 2021-06-27 23:46:14 -04:00
233d10649c [docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-06-27 23:43:49 -04:00
76c9e390f1 remove repeat 'to' in Task.restart doc 2021-06-27 23:42:43 -04:00
cbe7a1b3a2 Add "new in version" missing in webhook documentation 2021-06-27 23:41:00 -04:00
b2c9c26841 Show decorator usage instead of signature in docs 2021-06-27 23:40:39 -04:00
20dd632722 Fix Member.ban typing to include 0-day message deletes 2021-06-27 23:38:29 -04:00
3c2cf06e46 [commands] Add attr and parameter "argument" to BadInviteArgument 2021-06-27 23:38:07 -04:00
dbb135b81a Add disable_guild_select to utils.oauth_url() 2021-06-27 23:37:02 -04:00
d30fea5b0d Add changelog for v1.7.3 2021-06-12 12:28:08 -04:00
f27e2e073f Fix crash involving stickers 2021-06-12 11:56:51 -04:00
0bc5f276a7 [commands] Change EmojiConverter to use Client.get_emoji 2021-06-12 03:05:28 -04:00
1c640ad72b Lazily create Button custom_ids in decorator interface
The previous code would make two separate instances share the custom_id
which might have been undesirable behaviour
2021-06-12 02:33:11 -04:00
f0c76a13d3 Fix guild documentation not showing up for some methods 2021-06-11 05:25:06 -04:00
a0e1d1e25f Fix typing of IntegrationAccount class 2021-06-11 04:25:23 -04:00
04573c3c06 Make View timeout parameter keyword-only 2021-06-10 09:06:04 -04:00
f6ea03230e Make parameters passed to Reaction.user keyword-only 2021-06-10 08:58:25 -04:00
c251c51cb1 Typehint Reaction 2021-06-10 08:58:10 -04:00
9181bf046b Rename Reaction.custom_emoji to Reaction.is_custom_emoji
This legacy attribute was apparently never changed to be consistent
with the rest of the library
2021-06-10 08:50:50 -04:00
04788d0a06 Type-Hint appinfo/team 2021-06-10 08:06:00 -04:00
fc66c5b92d Fix some webhook related type checker errors 2021-06-10 07:57:41 -04:00
0dd4c4c08c Don't use class attribute syntax for Guild typings 2021-06-10 07:50:35 -04:00
35a9533e8d Type-Hint http.py 2021-06-10 07:34:41 -04:00
11e23c534a Close ClientSession after closing websocket connections 2021-06-10 07:32:05 -04:00
ee26b58c6c None check in InteractionResponse.edit_message 2021-06-10 07:28:26 -04:00
fa6fa6a567 Add category_id shortcut to Thread 2021-06-09 08:21:45 -04:00
2eb0ec07ab Add __str__ method to Thread 2021-06-09 08:21:14 -04:00
c2df574b2a Add audit log entries for stage instances 2021-06-09 08:09:05 -04:00
7dccbace78 Refactor Guild to support type hints
This patch also does the following:

* Sets some parameters to be positional only
* Changes Guild.edit to use the MISSING sentinel
* Changes the various create_channel methods to be type safe
* Changes many parameters from Optional[T] to use MISSING
* Changes Guild.create_role to use MISSING sentinel

This refactor is mostly partial but lays a decent foundation
2021-06-08 10:56:26 -04:00
2247fbb23a [types] Use proper type for Guild.threads 2021-06-08 09:28:29 -04:00
c693945a46 [types] Split PartialVoiceState for proper gateway type 2021-06-08 09:27:55 -04:00
746da7d54c Add Thread.permissions_for helper function 2021-06-08 07:29:17 -04:00