Steve C
20dd632722
Fix Member.ban typing to include 0-day message deletes
2021-06-27 23:38:29 -04:00
thetimtoy
3c2cf06e46
[commands] Add attr and parameter "argument" to BadInviteArgument
2021-06-27 23:38:07 -04:00
Soheab
dbb135b81a
Add disable_guild_select to utils.oauth_url()
2021-06-27 23:37:02 -04:00
Rapptz
d30fea5b0d
Add changelog for v1.7.3
2021-06-12 12:28:08 -04:00
Rapptz
f27e2e073f
Fix crash involving stickers
2021-06-12 11:56:51 -04:00
Rapptz
0bc5f276a7
[commands] Change EmojiConverter to use Client.get_emoji
2021-06-12 03:05:28 -04:00
Rapptz
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
Rapptz
f0c76a13d3
Fix guild documentation not showing up for some methods
2021-06-11 05:25:06 -04:00
Josh
a0e1d1e25f
Fix typing of IntegrationAccount class
2021-06-11 04:25:23 -04:00
Rapptz
04573c3c06
Make View timeout parameter keyword-only
2021-06-10 09:06:04 -04:00
Rapptz
f6ea03230e
Make parameters passed to Reaction.user keyword-only
2021-06-10 08:58:25 -04:00
Rapptz
c251c51cb1
Typehint Reaction
2021-06-10 08:58:10 -04:00
Rapptz
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
Josh
04788d0a06
Type-Hint appinfo/team
2021-06-10 08:06:00 -04:00
Rapptz
fc66c5b92d
Fix some webhook related type checker errors
2021-06-10 07:57:41 -04:00
Rapptz
0dd4c4c08c
Don't use class attribute syntax for Guild typings
2021-06-10 07:50:35 -04:00
Josh
35a9533e8d
Type-Hint http.py
2021-06-10 07:34:41 -04:00
Rapptz
11e23c534a
Close ClientSession after closing websocket connections
2021-06-10 07:32:05 -04:00
Devon R
ee26b58c6c
None check in InteractionResponse.edit_message
2021-06-10 07:28:26 -04:00
Lilly Rose Berner
fa6fa6a567
Add category_id shortcut to Thread
2021-06-09 08:21:45 -04:00
Lilly Rose Berner
2eb0ec07ab
Add __str__ method to Thread
2021-06-09 08:21:14 -04:00
Nadir Chowdhury
c2df574b2a
Add audit log entries for stage instances
2021-06-09 08:09:05 -04:00
Rapptz
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
Rapptz
2247fbb23a
[types] Use proper type for Guild.threads
2021-06-08 09:28:29 -04:00
Rapptz
c693945a46
[types] Split PartialVoiceState for proper gateway type
2021-06-08 09:27:55 -04:00
Rapptz
746da7d54c
Add Thread.permissions_for helper function
2021-06-08 07:29:17 -04:00
Rapptz
1152f67efc
Allow pins events to work with threads
2021-06-08 07:29:17 -04:00
Rapptz
5ae7940ec8
Add message purging functions to Thread
2021-06-08 07:29:17 -04:00
Rapptz
e13cbf4644
Don't dispatch thread_join on extraneous THREAD_CREATE dispatches
2021-06-08 07:29:17 -04:00
Rapptz
bd369c76ea
Parse remaining thread events.
2021-06-08 07:29:17 -04:00
Rapptz
9adf94e6b1
Add ThreadMember.thread
2021-06-08 07:29:17 -04:00
Rapptz
92ee2cd598
Add support for thread parameter in Webhook.send
2021-06-08 07:29:15 -04:00
Rapptz
4b51e3e253
Add TextChannel.active_threads
2021-06-08 07:26:22 -04:00
Rapptz
d0d2d7ea62
Clarify actions that require manage_threads permission
2021-06-08 07:26:22 -04:00
Rapptz
5a72391b72
Add thread related permissions
2021-06-08 07:26:22 -04:00
Rapptz
3a421a3eb9
Add TextChannel.get_thread shortcut helper
2021-06-08 07:26:22 -04:00
Rapptz
b2176dc0ef
Change how threads are created
...
Instead of start_public_thread and start_private_thread they'll now be
one method.
I might revert this if starting a public thread without a message never
ends up happening.
2021-06-08 07:26:22 -04:00
Rapptz
40127eb7b5
Fix import error with threads archived iterator
2021-06-08 07:26:22 -04:00
Rapptz
b9d8d3872e
Add __repr__ for the thread classes
2021-06-08 07:26:22 -04:00
Rapptz
429c5933d9
Add minor parsing for THREAD_LIST_SYNC and THREAD_MEMBER_UPDATE
...
There's no dispatch for these yet
2021-06-08 07:26:22 -04:00
Rapptz
a16f54afdb
Replace Ellipsis with utils.MISSING
2021-06-08 07:26:22 -04:00
Rapptz
a09f89cedf
Fix partial thread members
2021-06-08 07:26:22 -04:00
Rapptz
c6d09a8bfa
Add Thread.is_news()
2021-06-08 07:26:22 -04:00
Rapptz
72c66a1706
Bump gateway API to v9
2021-06-08 07:26:22 -04:00
Rapptz
4a4e73ec14
Update thread typings and payloads to match documentation
2021-06-08 07:26:18 -04:00
Rapptz
ac95b8b85b
Allow Message.channel to be a thread
2021-06-08 07:25:40 -04:00
Rapptz
51cc7622a6
TextChannel.archived_threads is not a coroutine
2021-06-08 07:25:40 -04:00
Rapptz
cb9a506686
Fix typo with archived_threads iterator leading to AttributeError
2021-06-08 07:25:40 -04:00
Rapptz
7c6724fdd7
Fix typo in start_private_thread
...
This also renames archive_threads to archived_threads
2021-06-08 07:25:40 -04:00
Rapptz
9d3962aa7a
[types] Fix some minor ordering mishap on MessageType
2021-06-08 07:25:40 -04:00