Commit Graph

31 Commits

Author SHA1 Message Date
4aafa39e8c Update thread permissions
Discord has renamed / repurposed "Use Public Threads" and "Use Private
Threads", as well as added a new permission "Send Messages in Threads".

For more information, see:
  https://github.com/discord/discord-api-docs/pull/3672
2021-08-26 15:53:21 -04:00
d2ea33e5e9 Add support for invitable thread option 2021-08-26 15:52:07 -04:00
490bbffc93 Remove in-place edits and return fresh instances instead
Fixes #4098
2021-08-23 23:46:50 -04:00
b5a717fb80 Fix missing typehint that causes an error for a type checker 2021-08-19 20:19:24 -04:00
68453c7bed Add Thread.members and Thread.fetch_members 2021-08-18 01:58:16 -04:00
8b148afabd Update description of auto_archive_duration kwarg of Thread.edit 2021-07-31 19:40:17 -04:00
8db79d2579 Add Thread.category 2021-07-30 21:27:10 -04:00
906c13d4f0 Set Thread.member/message_count 2021-07-28 20:00:30 -04:00
48eb981344 Fix Thread.slowmode_delay not updating 2021-07-21 02:47:15 -04:00
834e23dc00 Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
2021-07-21 02:44:27 -04:00
e2624b9a31 [commands] Fix (Partial)MessageConverter to work with thread messages 2021-07-10 03:11:34 -04:00
d1dc41ec2f Fix Client.fetch_channel not returning Thread 2021-07-03 21:35:31 -04:00
b7b75e2b1f Add Thread.is_nsfw 2021-07-03 00:14:48 -04:00
69c400d813 Add Thread.mention 2021-07-01 20:51:56 -04:00
64b48431b4 Add type property to thread channels 2021-07-01 20:27:39 -04:00
485542c480 Fix typing linting error in threads 2021-06-29 02:26:07 -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
746da7d54c Add Thread.permissions_for helper function 2021-06-08 07:29:17 -04:00
5ae7940ec8 Add message purging functions to Thread 2021-06-08 07:29:17 -04:00
bd369c76ea Parse remaining thread events. 2021-06-08 07:29:17 -04:00
9adf94e6b1 Add ThreadMember.thread 2021-06-08 07:29:17 -04:00
d0d2d7ea62 Clarify actions that require manage_threads permission 2021-06-08 07:26:22 -04:00
b9d8d3872e Add __repr__ for the thread classes 2021-06-08 07:26:22 -04:00
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
a16f54afdb Replace Ellipsis with utils.MISSING 2021-06-08 07:26:22 -04:00
a09f89cedf Fix partial thread members 2021-06-08 07:26:22 -04:00
c6d09a8bfa Add Thread.is_news() 2021-06-08 07:26:22 -04:00
4a4e73ec14 Update thread typings and payloads to match documentation 2021-06-08 07:26:18 -04:00
c1ce3b949f Implement remaining HTTP endpoints on threads
I'm not sure if I missed any -- but this is the entire documented set
so far.
2021-06-08 07:25:30 -04:00
68c7c538f5 First pass at preliminary thread support
This is missing a lot of functionality right now, such as two gateway
events and all the HTTP CRUD endpoints.
2021-06-08 07:23:40 -04:00