aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement voice region changing for voice channelsTarek2021-04-011-2/+17
|
* Ignore moving category channels to another categoryRapptz2021-03-301-0/+5
|
* [docs] copy signature from overridden and inherited methodsSebastian Law2021-03-291-14/+7
|
* Deprecate non-bot methodsNadir Chowdhury2021-02-231-1/+10
|
* Fix documentation with reference in GroupChannel.permissions_for SuzuZusu2021-02-171-2/+2
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Allow PartialMessage to work with DM channels as wellRapptz2020-12-111-0/+22
|
* Add PartialMessage to allow working with channel/message_id pairs.Rapptz2020-12-111-0/+22
| | | | Fix #5905
* Add support for editing and deleting webhook messages.Rapptz2020-12-091-2/+4
| | | | Fix #6058
* Implement icon_rl_as and cover_image_url_as for AppInfoSebbyLaw2020-11-211-2/+33
|
* Fix and add documentationMichael2020-09-231-4/+4
|
* Allow more methods to set an audit log reasonNadir Chowdhury2020-06-301-2/+6
|
* Documentation formattingSkezza2020-06-301-1/+1
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-1/+11
|
* Allow editing of channel types for news and text channelsNCPlayz2020-05-291-0/+7
|