Rapptz
1e17b7fcea
Rename start_thread to create_thread for consistency
4 years ago
Rapptz
fda543c844
Fix incorrect indent
4 years ago
Rapptz
dc9c224b54
Undo coercion of partial DMChannel to PartialMessageable
4 years ago
Rapptz
1279510194
Add support for PartialMessageable instances
This allows library users to send messages to channels without fetching
it first.
4 years ago
Rapptz
58ca9e9932
Add TextChannel.default_auto_archive_duration
4 years ago
Rapptz
f72350199d
Fix typo in TextChannel.start_thread
4 years ago
Rapptz
dac0267e28
Allow creating a public thread without a starter message
4 years ago
PythonCoderAS
51b02f2568
Change type to be compatible with the overwrites property
4 years ago
Nadir Chowdhury
96b9a0e09d
Add reason kwarg to more methods
4 years ago
Steve C
834e23dc00
Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
4 years ago
Rapptz
74e1ab09a0
Remove channel type coercion in factory methods
This caused unnecessary isinstance checks which were slowing down
channel creation at scale
4 years ago
Alex Nørgaard
d1dc41ec2f
Fix Client.fetch_channel not returning Thread
4 years ago
Rapptz
8b4dd34328
Document TextChannel.start_thread return type
4 years ago
Rapptz
62dad0f7bf
Fix potential None access in various StageChannel properties
4 years ago
Rapptz
ea1d423904
Check for None in VocalGuildChannel.voice_states
4 years ago
Rapptz
2beee8be14
Type hint channel.py
4 years ago
Lilly Rose Berner
b59ec318c0
Fix Category.create_x_channel raising without overwrites
4 years ago
Josh
233d10649c
[docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
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
4 years ago
Rapptz
4b51e3e253
Add TextChannel.active_threads
4 years ago
Rapptz
d0d2d7ea62
Clarify actions that require manage_threads permission
4 years ago
Rapptz
3a421a3eb9
Add TextChannel.get_thread shortcut helper
4 years ago
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.
4 years ago
Rapptz
51cc7622a6
TextChannel.archived_threads is not a coroutine
4 years ago
Rapptz
7c6724fdd7
Fix typo in start_private_thread
This also renames archive_threads to archived_threads
4 years ago
Rapptz
c1ce3b949f
Implement remaining HTTP endpoints on threads
I'm not sure if I missed any -- but this is the entire documented set
so far.
4 years ago
Rapptz
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.
4 years ago
Rapptz
5c2945bcd4
Fix AttributeError in is_nsfw() methods
4 years ago
Rapptz
27556ea0a2
Fix DM channel permissions not having read_messages
4 years ago
Nadir Chowdhury
9f98a9a87f
Implement StageInstance
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Sebastian Law
b82a0dc6fd
[docs] remove mentions of bot only usability
4 years ago
Nadir Chowdhury
1d7f387122
[docs] stage_channels doc typo
4 years ago
z03h
304229071f
Add VoiceChannel.video_quality_mode
4 years ago
Rapptz
9eaf1e85e4
Rewrite Asset design
This is a breaking change.
This does the following transformations, assuming `asset` represents
an asset type.
Object.is_asset_animated() => Object.asset.is_animated()
Object.asset => Object.asset.key
Object.asset_url => Object.asset_url
Object.asset_url_as => Object.asset.replace(...)
Since the asset type now requires a key (or hash, if you will),
Emoji had to be flattened similar to how Attachment was done since
these assets are keyed solely ID.
Emoji.url (Asset) => Emoji.url (str)
Emoji.url_as => removed
Emoji.url.read => Emoji.read
Emoji.url.save => Emoji.save
This transformation was also done to PartialEmoji.
4 years ago
Robin
30310b9ab6
Add NSFW for Guilds
4 years ago
Rapptz
a8b3cfa592
Remove comment that doesn't apply anymore
4 years ago
Rapptz
9b94fe1ce0
Remove superfluous unused payload parameter
4 years ago
Rapptz
7bdaa793f6
Create temporary DMChannels from message create events
This allows for DMChannels to work without falling back to the
Object error case since there is enough information to build a pseudo
DMChannel object.
This is a breaking change since it changes the type of
DMChannel.recipient to Optional[User] for when this faux object is
created.
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Rapptz
54288879e2
Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Rapptz
efc30a146e
Guard for `None` in VocalGuildChannel.members
4 years ago
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
4 years ago
Tarek
6524869ddd
Implement voice region changing for voice channels
4 years ago
Rapptz
a30ad6acf2
Ignore moving category channels to another category
4 years ago
Sebastian Law
d6501159e7
[docs] copy signature from overridden and inherited methods
4 years ago
Nadir Chowdhury
427e387a2f
Deprecate non-bot methods
4 years ago
SuzuZusu
491b426205
Fix documentation with reference in GroupChannel.permissions_for
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago