aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* [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
|
* Use GuildChannel abc for CategoryChannel editSteve C2020-05-101-11/+1
| | | | | | | | | | | I noticed nothing happened when I did `ch.edit(overwrites=oh.overwrites)` `http.edit_channel` doesn't do anything with the `overwrites` keyword, it's processed as `permission_overwrites` instead which `self._edit` takes care of. I feel this was an oversight at some point.
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-6/+9
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-6/+6
|
* Bump copyright year to 2020Rapptz2020-01-191-2/+2
| | | | Closes #2510
* Added docs for overwrites kwarg for CategoryChannel.editWilly2020-01-191-0/+5
|
* Document NotFound exception raise in message deletion endpointsRapptz2020-01-181-3/+5
|
* Allow editing of overwrites in Channel.edit()CapnS2019-12-041-2/+21
|
* Fix 'purge' method docstring.Naegin2019-11-151-1/+1
|
* Implement `TextChannel.follow()`NCPlayz2019-11-151-1/+41
|
* [docs] category_id is Optionalapple502j2019-10-201-4/+4
|
* Add VoiceChannel.voice_states low level helper.Rapptz2019-07-101-0/+18
|
* Publicly expose a type property for all channels.Rapptz2019-06-091-10/+20
| | | | Fix #2185
* Improve documentationNCPlayz2019-06-071-18/+18
|
* Make __repr__ slightly more detailed and add a few missing ones.Rapptz2019-05-261-5/+21
| | | | | | This includes raw events (which didn't have any) and a few other types that were missing them. Upon review some more useful fields were added to the repr output which would be more useful during debugging.
* Correct the documentation for methods and properties that return AssetsVexs2019-05-141-1/+1
|
* Fixed TextChannel edit method missing slowmode unitDevilXD2019-04-291-2/+2
|
* Consistent use of __all__ to prevent merge conflicts.Rapptz2019-04-201-2/+2
|
* Add reason to TextChannel.create_webhookRapptz2019-04-181-2/+7
| | | | | The reason parameter does not work with webhook deletes or edits so they're not added. Probably a Discord bug.
* Add abc.GuildChannel.clone to clone a channel with another name.Rapptz2019-04-181-0/+31
| | | | Fixes #2093
* Remove legacy nsfw check.Rapptz2019-04-161-6/+3
|
* Bool fix in TextChannel.purge documentation.Lorenzo2019-04-131-1/+1
|
* Change slowmode max value in docsapple502j2019-04-131-1/+1
|
* simplify HistoryIterator message orderingkhazhyk2019-04-071-4/+4
| | | | | | | | | | | | | | | | | | | | rename reverse -> oldest_first, which is more obvious what it does. Then, honor it entirely - if you specify no `after` endpoint, we default to the beginning of message history, similar to how `before` defaults to the end of message history. This is a breaking change, and will change the behavior of any iterator that previously would have been returning messages in a weird order for limits over 100 `for msg in history(reversed=True, limit=300)` would return the newest 300 messages, in a messed up order (100..0, 200..100, 300..200). `for msg in history(oldest_first=True, limit=300)` will now return the oldest 300 messages in order. And so on. `for msg in history(after=msg)` is unchanged, this previously would return the oldest 100 messages after `msg`, oldest->newest order, and still will.