62 Commits

Author SHA1 Message Date
Rapptz
8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
Eric Schneider
2c197649c2
Add note about archiver_id 2024-05-30 07:24:56 -04:00
owocado
ef64f76eae
Add reason kwarg to Thread.delete 2024-05-04 23:25:49 -04:00
Rapptz
0adef0ec89 Update auto_archive_duration documentation
Fix #9351
2023-04-18 06:03:48 -04:00
Rapptz
887ddbb4b6 Fix implicit permission resolution for Thread
Fix #9153
2022-12-29 07:17:41 -05:00
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
Mega-JC
a705546f0c
Update Thread.message_count documentation
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-09-26 02:12:41 -04:00
Steve C
ce06beeb6c
Fix permissions-based docstrings to be more consistent 2022-09-17 14:07:39 -04:00
Lilly Rose Berner
e8f6b29a2d
Update flags and applied tags on thread update 2022-09-04 10:42:19 -04:00
Rapptz
ab265dcb7c Add support for newest ForumChannel changes
This adds the following:

- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
2022-08-31 11:09:56 -04:00
Rapptz
1335937288 Add Thread.starter_message property 2022-06-23 04:17:56 -04:00
Rapptz
96e6261d61 Change default for purge oldest_first to match history 2022-06-13 04:54:08 -04:00
Sebastian Law
f19f51f771
Use positional args for internal thread methods 2022-05-25 05:17:21 -04:00
Lilly Rose Berner
7ee15e1d68
Use typing.Literal for channel and component type annotation 2022-04-29 06:07:22 -04:00
Rapptz
49f330b4a3 Fix Thread.jump_url docstring 2022-04-13 17:12:44 -04:00
Omkaar
a6ce49833c
Add jump_url property to Threads 2022-04-13 02:00:43 -04:00
Steve C
151806ec94
Add ForumChannel to Thread.parent_id docstring 2022-04-12 20:14:20 -04:00
Vioshim
79bd18f98c
Add reason parameter to Thread.edit 2022-04-10 22:51:24 -04:00
Rapptz
a8b26b9257 Allow pinning a thread using Thread.edit 2022-04-06 23:21:17 -04:00
Rapptz
23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
Rapptz
52e16573f5 Remove unused imports and make exports explicit
This allows Pyright to actually catch these errors, which would be
useful for CI purposes in the future.
2022-04-02 11:38:39 -04:00
Rapptz
2aca705b95 Add support for sending messages and managing webhooks in VoiceChannel 2022-04-02 11:14:03 -04:00
Rapptz
b049cf77f2 Add reason to Thread.delete_messages and Thread.purge 2022-04-02 10:36:39 -04:00
pikaninja
40bab465a5
Remove user account reference in docstring 2022-03-27 22:26:49 -04:00
Stocker
caf2000fe8
Add missing annotation for ThreadMember.id 2022-03-17 07:27:13 -04:00
Stocker
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
Stocker
e491aa84e5
Fix typo in Thread.remove_user 2022-03-05 23:17:37 -05:00
Josh
4dbe1af32f
Update sphinx and fix documentation issues 2022-02-19 22:35:32 -05:00
jack1142
dc19c6c7d5
Add positional-only arguments in more places 2022-02-19 20:28:01 -05:00
Kowlin
7f54c45886
Add Thread.created_at 2022-02-18 05:20:26 -05:00
jack1142
9a6b2fa402
Add Thread.fetch_member
See: discord/discord-api-docs#3998
2022-02-17 11:26:41 -05:00
James Gayfer
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
Josh
d2ea33e5e9
Add support for invitable thread option 2021-08-26 15:52:07 -04:00
Rapptz
490bbffc93 Remove in-place edits and return fresh instances instead
Fixes #4098
2021-08-23 23:46:50 -04:00
Stocker
b5a717fb80
Fix missing typehint that causes an error for a type checker 2021-08-19 20:19:24 -04:00
Rapptz
68453c7bed Add Thread.members and Thread.fetch_members 2021-08-18 01:58:16 -04:00
Willy
8b148afabd
Update description of auto_archive_duration kwarg of Thread.edit 2021-07-31 19:40:17 -04:00
Arthur
8db79d2579
Add Thread.category 2021-07-30 21:27:10 -04:00
Nadir Chowdhury
906c13d4f0
Set Thread.member/message_count 2021-07-28 20:00:30 -04:00
z03h
48eb981344
Fix Thread.slowmode_delay not updating 2021-07-21 02:47:15 -04:00
Steve C
834e23dc00
Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
2021-07-21 02:44:27 -04:00
Nadir Chowdhury
e2624b9a31
[commands] Fix (Partial)MessageConverter to work with thread messages 2021-07-10 03:11:34 -04:00
Alex Nørgaard
d1dc41ec2f
Fix Client.fetch_channel not returning Thread 2021-07-03 21:35:31 -04:00
Alex Nørgaard
b7b75e2b1f
Add Thread.is_nsfw 2021-07-03 00:14:48 -04:00
Rapptz
69c400d813 Add Thread.mention 2021-07-01 20:51:56 -04:00
Alex Liu
64b48431b4
Add type property to thread channels 2021-07-01 20:27:39 -04:00
Rapptz
485542c480 Fix typing linting error in threads 2021-06-29 02:26:07 -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
Rapptz
746da7d54c Add Thread.permissions_for helper function 2021-06-08 07:29:17 -04:00