Alex Nørgaard
6a58cabf5c
Add Guild.create_forum and CategoryChannel.create_forum
3 years ago
Rapptz
3fe9fc92eb
Automatically infer entity_type when passing concrete channels
This affects Guild.create_scheduled_event and ScheduledEvent.edit
Previously, you would always be required to pass it in. However, it
makes sense to not repeat yourself if you already know it's a stage
channel or a voice channel due to the type information.
3 years ago
Rapptz
259c6733a3
Add webhook creation methods to ForumChannel
3 years ago
Rapptz
b7ac0a02ca
Fix documentation of PartialMessageable.jump_url
3 years ago
Rapptz
c22b6dc2cd
Add guild property to DMChannel, GroupChannel, and PartialMessageable
This improves generic duck typing programming by allowing narrowing
the types by just checking for a None guild attribute.
3 years ago
Rapptz
8699d2139a
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
Rapptz
7f210c90f4
Return a named tuple with message from ForumChannel.create_thread
3 years ago
Rapptz
0851e03f00
Allow creating a news channel in create_text_channel
3 years ago
Rapptz
06df0d7931
Address latest breaking change in creating forum posts
3 years ago
Rapptz
9e3375f3fc
Fix infinite recursion in TextChannel.type
3 years ago
Lilly Rose Berner
7ee15e1d68
Use typing.Literal for channel and component type annotation
3 years ago
lightningyx
19fb8ac447
Add narrowed overloads for edit methods on channels
3 years ago
Omkaar
348764583d
Add jump_url property to channels
3 years ago
Rapptz
30cc00c9a4
Explicitly specify public threads when creating them in forums
The endpoint seems to fail otherwise
3 years ago
Rapptz
67a58d10ae
Change Fetch -> Retrieve for last_message documentation
3 years ago
Rapptz
23f6876492
Add initial support for forum channels
Closes #7652
3 years ago
Rapptz
3ef8f77e81
Add proper nsfw support for vocal guild channels
3 years ago
Puncher
18050aecd7
Fix broken code blocks in docstrings
3 years ago
Puncher
0dbebf87b2
Fix TextChannel.archived_threads docstring
3 years ago
Rapptz
2aca705b95
Add support for sending messages and managing webhooks in VoiceChannel
3 years ago
Rapptz
def035bf9a
Remove StoreChannel and any references to it
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
I. Ahmad
4dc24a005a
Fix typo in PartialMessageable docstring
3 years ago
jack1142
d55f8d38ad
Add PartialMessageable.__repr__
3 years ago
Rapptz
caf1c6eae4
Fix overload in StoreChannel
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
thetimtoy
a877b269da
Remove unused Object import
3 years ago
Neon Jonn
adb69e7157
Fix some spelling mistakes
3 years ago
Stocker
e15415413b
Add missing parameters to certain methods
- slowmode_delay and reason in Message.create_thread
- slowmode_delay in TextChannel.create_thread
- reason in Guild.edit_widget
3 years ago
Haruka
1bfe3bdff1
Fix bug in PartialMessageable.trigger_typing
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Vaskel
86797dd9ab
Add reason param to purge and delete_messages
Co-authored-by: Danny <[email protected] >
3 years ago
jack1142
fd4c5a65ed
Remove topic from StageChannel.edit's overload
3 years ago
Rapptz
0eb2f32399
Remove VoiceRegion enum and Guild.region attribute
This has been marked deprecated by Discord and it was more or less
usually out of date due to the pace they added them anyway.
3 years ago
Josh
3ce00abeae
Fix some type-check errors
3 years ago
Rapptz
6c2ea4f0a0
Fix some type ignores in backoff and channel
3 years ago
mniip
22b06e7bf8
Fix TextChannel.archived_threads
Threads are now returned in a consistent order if multiple requests are
made. The server-side limit is [2, 100] threads per request.
3 years ago
jack1142
45b9585910
Remove versionchanged in PartialMessageable
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Josh
4dbe1af32f
Update sphinx and fix documentation issues
3 years ago
Kaylynn Morgan
588cda0996
Refactor AsyncIter to use 3.6+ asynchronous generators
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
Josh
4248bb3717
Add invitable to TextChannel.create_thread
3 years ago
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
4 years ago
Rapptz
dd7d4b8e7f
Use a thread values view when constructing TextChannel.threads
Avoids an accidental O(n^2) situation.
4 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Stocker
ae01a96bef
Add missing type: ignore and missing typehint to channel.py
4 years ago