aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove in-place edits and return fresh instances insteadRapptz2021-08-231-15/+77
| | | | Fixes #4098
* Add missing type: ignore and missing typehint to channel.pyStocker2021-08-231-1/+3
|
* Use channel default auto archive durationJames Gayfer2021-08-181-4/+4
| | | | | | | | | Currently creating a new thread uses a default auto archive duration of 1440 minutes, or 1 day. Rather than prescribing our own default, we can use the default auto archive duration that is set on the channel. This ensures that newly created threads will respect the default auto archive duration as prescribed by the user.
* Remove deprecated TextChannel.active_threads for Guild versionRapptz2021-08-181-23/+0
| | | | This also fills in the ThreadMember data from the endpoint
* Fix Guild.fetch_channel not working for threadsla2021-08-181-0/+7
|
* Fix missing or broken versionadded in docstringsAkshuAgarwal2021-08-181-0/+2
| | | This also documents BadFlagArgument.flag
* Rename start_thread to create_thread for consistencyRapptz2021-08-121-10/+10
|
* Fix incorrect indentRapptz2021-08-111-1/+1
|
* Undo coercion of partial DMChannel to PartialMessageableRapptz2021-08-101-4/+20
|
* Add support for PartialMessageable instancesRapptz2021-08-101-22/+88
| | | | | This allows library users to send messages to channels without fetching it first.
* Add TextChannel.default_auto_archive_durationRapptz2021-08-021-0/+10
|
* Fix typo in TextChannel.start_threadRapptz2021-07-311-1/+1
|
* Allow creating a public thread without a starter messageRapptz2021-07-281-5/+14
|
* Change type to be compatible with the overwrites propertyPythonCoderAS2021-07-281-16/+16
|
* Add reason kwarg to more methodsNadir Chowdhury2021-07-281-2/+13
|
* Fix type annotations for purge's limit param on Thread/TextChannelSteve C2021-07-211-1/+1
| | | Optional was missing.
* Remove channel type coercion in factory methodsRapptz2021-07-071-10/+4
| | | | | This caused unnecessary isinstance checks which were slowing down channel creation at scale
* Fix Client.fetch_channel not returning ThreadAlex Nørgaard2021-07-031-2/+8
|
* Document TextChannel.start_thread return typeRapptz2021-07-031-0/+5
|
* Fix potential None access in various StageChannel propertiesRapptz2021-06-301-3/+5
|
* Check for None in VocalGuildChannel.voice_statesRapptz2021-06-291-1/+7
|
* Type hint channel.pyRapptz2021-06-291-225/+273
|
* Fix Category.create_x_channel raising without overwritesLilly Rose Berner2021-06-281-6/+6
|
* [docs] Update Sphinx and Fix various referencesJosh2021-06-271-1/+1
| | | Co-Authored-By: Riley Shaw <[email protected]>
* Refactor Guild to support type hintsRapptz2021-06-081-7/+16
| | | | | | | | | | | | 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
* Add TextChannel.active_threadsRapptz2021-06-081-0/+20
|
* Clarify actions that require manage_threads permissionRapptz2021-06-081-1/+1
|
* Add TextChannel.get_thread shortcut helperRapptz2021-06-081-0/+17
|
* Change how threads are createdRapptz2021-06-081-11/+36
| | | | | | | | 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.
* TextChannel.archived_threads is not a coroutineRapptz2021-06-081-1/+1
|
* Fix typo in start_private_threadRapptz2021-06-081-2/+2
| | | | This also renames archive_threads to archived_threads
* Implement remaining HTTP endpoints on threadsRapptz2021-06-081-2/+79
| | | | | I'm not sure if I missed any -- but this is the entire documented set so far.
* First pass at preliminary thread supportRapptz2021-06-081-0/+8
| | | | | This is missing a lot of functionality right now, such as two gateway events and all the HTTP CRUD endpoints.
* Fix AttributeError in is_nsfw() methodsRapptz2021-06-081-3/+3
|
* Fix DM channel permissions not having read_messagesRapptz2021-06-051-0/+2
|
* Implement StageInstanceNadir Chowdhury2021-05-301-11/+112
|
* Type up **kwargs of various methods Nadir Chowdhury2021-05-101-11/+127
|
* [docs] remove mentions of bot only usabilitySebastian Law2021-05-041-6/+3
|
* [docs] stage_channels doc typo Nadir Chowdhury2021-04-211-1/+1
|
* Add VoiceChannel.video_quality_modez03h2021-04-171-2/+21
|
* Rewrite Asset designRapptz2021-04-161-44/+13
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add NSFW for GuildsRobin2021-04-141-3/+21
|
* Remove comment that doesn't apply anymoreRapptz2021-04-111-4/+0
|
* Remove superfluous unused payload parameterRapptz2021-04-111-1/+1
|
* Create temporary DMChannels from message create eventsRapptz2021-04-111-2/+19
| | | | | | | | | | 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.
* Use f-strings in more places that were missed.Rapptz2021-04-081-6/+6
|
* Remove userbot functionalityRapptz2021-04-041-96/+2
| | | | | 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.
* Modernize code to use f-stringsRapptz2021-04-041-6/+7
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Guard for `None` in VocalGuildChannel.membersRapptz2021-04-031-1/+1
|
* Implement StageChannel and related methodsNadir Chowdhury2021-04-031-62/+218
|