aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make supported operations stand out more than attributes.Rapptz2017-05-201-32/+40
|
* Use describe instead of tables for supported operations.Rapptz2017-05-131-50/+58
|
* Fix some left over incorrect snippets.Rapptz2017-05-121-1/+1
|
* First pass at documentation reform.Rapptz2017-05-121-2/+2
|
* Rename abc.Callable to abc.Connectable.Rapptz2017-05-101-1/+1
|
* Add support for audit log reasons.Rapptz2017-05-071-16/+24
| | | | Most routes now have a 'reason' keyword argument.
* Better TextChannel.is_nsfw() check.Rapptz2017-04-301-1/+1
|
* Add TextChannel.is_nsfw method to check for NSFW channels.Rapptz2017-04-261-0/+5
|
* Remove unused imports.Rapptz2017-04-181-5/+1
|
* Re-implement voice sending.Rapptz2017-04-181-1/+7
| | | | | | | | | | | | | | | | | | | | This is a complete redesign of the old voice code. A list of major changes is as follows: * The voice websocket will now automatically reconnect with exponential back-off just like the regular Client does. * Removal of the stream player concept. * Audio now gracefully pauses and resumes when a disconnect is found. * Introduce a discord.AudioSource concept to abstract streams * Flatten previous stream player functionality with the VoiceClient, e.g. player.stop() is now voice_client.stop() * With the above re-coupling this means you no longer have to store players anywhere. * The after function now requires a single parameter, the error, if any existed. This will typically be None. A lot of this design is experimental.
* Add TextChannel.members to get members that can see a channel.Rapptz2017-02-281-0/+5
|
* Rename VoiceChannel.voice_members to VoiceChannel.membersRapptz2017-02-281-1/+1
|
* Move purge and delete_messages from Messageable.Rapptz2017-02-261-0/+144
| | | | | | This is a breaking change. Move these two to TextChannel since the other things that implement Messageable cannot reliably do bulk delete actions in their respective channels.
* Fix NameError in GroupChannel.Rapptz2017-02-101-1/+1
|
* Better group DM support.Rapptz2017-02-091-1/+104
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Remove _get_guild_id from Messageable ABC.Rapptz2017-01-141-9/+0
|