aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Redesign asset retrieval in the library.NCPlayz2019-04-061-5/+3
| | | | | | | | | | | Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997
* Fix documentation for Channel.last_messageCapn2019-03-221-1/+1
|
* Add TextChannel.last_message_id and TextChannel.last_messageRapptz2019-03-201-1/+46
|
* Organise documentationNCPlayz2019-03-191-28/+28
|
* Sorting bucket requires an integer.Rapptz2019-03-171-1/+1
|
* Fix typo in private property name.Rapptz2019-03-171-1/+1
|
* Add support for store channels.Rapptz2019-03-171-1/+132
|
* Handle type updates in TextChannel._update for news channels.Rapptz2019-03-121-0/+1
|
* Add Category.create_text_channel/Category.create_voice_channel (#1976)Nadir Chowdhury2019-03-121-0/+14
| | | Fixes #1971
* Add support for guild news channels.Rapptz2019-03-081-2/+10
|
* Fix typing for Channel.purge's limit kwarg.Steve C2019-02-271-1/+1
| | | PyCharm was throwing a fit when I set it to None. 😒
* Fix documentation typo in CategoryChannelPedro Cunha2019-02-121-1/+1
|
* Add CategoryChannel.text_channels and voice_channelsChris2019-01-291-0/+18
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Handle implicit perms in discord.VoiceChannel.permissions_forMichael H2018-12-141-0/+13
| | | | | This adds some implicit permission handling for `discord.VoiceChannel.permissions_for` This is not documented behavior in discord's developer documentation, but it can easily be verified as correct.
* [lint] Fix import orderHornwitser2018-11-241-5/+4
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* Revert "Rework documentation to not duplicate inherited members."Rapptz2018-10-111-18/+0
| | | | This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
* Rework documentation to not duplicate inherited members.Rapptz2018-10-031-0/+18
| | | | This will probably be reverted in 1 week.
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-151-2/+2
|
* Add support for Discord's slow mode.Rapptz2018-09-141-7/+17
| | | | | | | Adds the following: * `slowmode_delay` for `TextChannel.edit` * `slowmode_delay` attribute for `TextChannel`
* Change docstrings to raw-stringsBeatButton2018-09-141-2/+2
|
* [lint] Fix types used for __slots__ and __all__Hornwitser2018-08-221-1/+1
| | | | | Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-4/+5
| | | | Adjust whitespace to be consistent with the rest of the library.
* Make TextChannel.create_webhook name parameter mandatory.Rapptz2018-07-201-6/+3
|
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-50/+35
|
* Fixes various documentation errors/inconsistenciesSteve C2018-05-181-9/+9
| | | | Mostly dealing with permissions, also fixes Raw Events inclusion.
* Fix typo in TextChannel.delete_messages documentation.Rapptz2018-03-061-3/+3
|
* Update docstrings for channel.pyJared Shields2018-02-261-1/+4
| | | | `delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this. Small amendment at line 180, adding three additional.
* Add intersphinxTobotimus2018-01-061-20/+20
|
* Missing name parameter in VoiceChannel.edit documentation.Rapptz2017-10-261-0/+2
|
* Add category support.Rapptz2017-09-131-14/+128
| | | | | | | | | | | | | This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
* Add webhook support.Rapptz2017-08-211-0/+61
| | | | | | | Allows for usage of either `requests` and `aiohttp` when used in "Standalone" mode. Fixes #704
* Remove incorrect extraneous usage of reason keyword argument.Rapptz2017-08-171-1/+1
| | | | Fixes #726
* Remove reason keyword argument from message deletion.Rapptz2017-08-151-13/+9
| | | | | | | | | | | Apparently this is unsupported. Affected functions include: * abc.Messageable.send * Message.delete * TextChannel.delete_messages * TextChannel.purge
* Add bulk argument to TextChannel.purgekhazhyk2017-07-241-2/+7
| | | | | bulk=False will never use bulk message delete. Useful e.g. for using the purge interface for deleting the bot's own messages.
* Implement new-style NSFW channels.Rapptz2017-07-181-2/+5
| | | | | No idea how these will change in the future but this is barebones enough for now.
* Expose reverse parameter in TextChannel.purgeRapptz2017-07-141-2/+4
|
* Fix TextChannel.purge not working.Rapptz2017-07-041-1/+1
|
* Typo in docstring for TextChannel.delete_messagesRapptz2017-06-291-1/+1
|
* Allow TextChannel.delete_messages to take lists of 0 or 1 element.Rapptz2017-06-291-8/+22
|