Rapptz
35c0476dbb
Add TextChannel.last_message_id and TextChannel.last_message
2019-03-20 22:30:23 -04:00
NCPlayz
fb02191b80
Organise documentation
2019-03-19 08:24:42 -04:00
Rapptz
cb9ae7bd76
Sorting bucket requires an integer.
2019-03-17 15:16:46 -04:00
Rapptz
f3f2f882fd
Fix typo in private property name.
2019-03-17 15:14:58 -04:00
Rapptz
5061915b2a
Add support for store channels.
2019-03-17 14:32:51 -04:00
Rapptz
a70db36cfc
Handle type updates in TextChannel._update for news channels.
2019-03-12 23:13:22 -04:00
Nadir Chowdhury
999ac0a0e3
Add Category.create_text_channel/Category.create_voice_channel ( #1976 )
...
Fixes #1971
2019-03-12 08:16:25 -04:00
Rapptz
5ea84fb971
Add support for guild news channels.
2019-03-08 21:40:43 -05:00
Steve C
8beabcc39a
Fix typing for Channel.purge's limit kwarg.
...
PyCharm was throwing a fit when I set it to None. 😒
2019-02-27 16:40:32 -05:00
Pedro Cunha
4ebe02ab1f
Fix documentation typo in CategoryChannel
2019-02-12 19:15:21 -05:00
Chris
1222bce271
Add CategoryChannel.text_channels and voice_channels
2019-01-29 06:50:18 -05:00
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
Michael H
f45aef7c2e
Handle implicit perms in discord.VoiceChannel.permissions_for
...
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.
2018-12-14 18:59:46 -05:00
Hornwitser
efb4ff850e
[lint] Fix import order
...
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
2018-11-24 22:17:58 -05:00
Rapptz
860d6a9ace
Revert "Rework documentation to not duplicate inherited members."
...
This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
2018-10-11 03:42:01 -04:00
Rapptz
96981210b3
Rework documentation to not duplicate inherited members.
...
This will probably be reverted in 1 week.
2018-10-03 05:45:30 -04:00
Rapptz
5c24e69cf2
Fix up the Sphinx strings causing warnings.
2018-09-15 09:54:00 -04:00
Rapptz
0352c80a17
Add support for Discord's slow mode.
...
Adds the following:
* `slowmode_delay` for `TextChannel.edit`
* `slowmode_delay` attribute for `TextChannel`
2018-09-14 22:55:29 -04:00
BeatButton
a4d1599ce9
Change docstrings to raw-strings
2018-09-14 22:55:27 -04:00
Hornwitser
c557ee33ca
[lint] Fix types used for __slots__ and __all__
...
Stay consistent with the rest of the library and use lists for module
__all__ values and tuples for class __slots__ attributes.
2018-08-22 21:43:55 -04:00
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
...
Adjust whitespace to be consistent with the rest of the library.
2018-08-22 21:43:53 -04:00
Rapptz
4aecdea052
Make TextChannel.create_webhook name parameter mandatory.
2018-07-20 04:17:28 -04:00
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
2018-06-10 18:10:00 -04:00
Steve C
0e945915b7
Fixes various documentation errors/inconsistencies
...
Mostly dealing with permissions, also fixes Raw Events inclusion.
2018-05-18 20:25:54 -04:00
Rapptz
1590441dbf
Fix typo in TextChannel.delete_messages documentation.
2018-03-06 00:19:58 -05:00
Jared Shields
2f562bd695
Update docstrings for channel.py
...
`delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this.
Small amendment at line 180, adding three additional.
2018-02-26 22:04:49 -08:00
Tobotimus
3112e1c17e
Add intersphinx
2018-01-06 17:23:59 -05:00
Rapptz
89bbbec37e
Missing name parameter in VoiceChannel.edit documentation.
2017-10-26 05:36:19 -04:00
Rapptz
53b4890435
Add category support.
...
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
2017-09-13 09:44:36 -04:00
Rapptz
37b0fdb898
Add webhook support.
...
Allows for usage of either `requests` and `aiohttp` when used in
"Standalone" mode.
Fixes #704
2017-08-21 01:57:07 -04:00
Rapptz
3b3b8a5150
Remove incorrect extraneous usage of reason keyword argument.
...
Fixes #726
2017-08-17 18:20:28 -04:00
Rapptz
63231ef033
Remove reason keyword argument from message deletion.
...
Apparently this is unsupported.
Affected functions include:
* abc.Messageable.send
* Message.delete
* TextChannel.delete_messages
* TextChannel.purge
2017-08-15 22:38:43 -04:00
khazhyk
f1e08cccac
Add bulk argument to TextChannel.purge
...
bulk=False will never use bulk message delete. Useful e.g. for
using the purge interface for deleting the bot's own messages.
2017-07-24 00:11:05 -04:00
Rapptz
6e0902ef57
Implement new-style NSFW channels.
...
No idea how these will change in the future but this is barebones
enough for now.
2017-07-18 16:36:26 -04:00
Rapptz
3fbeb94cdb
Expose reverse parameter in TextChannel.purge
2017-07-14 01:13:50 -04:00
Rapptz
ea078f1c68
Fix TextChannel.purge not working.
2017-07-04 21:59:44 -04:00
Rapptz
77f04539b1
Typo in docstring for TextChannel.delete_messages
2017-06-29 20:33:19 -04:00
Rapptz
64cba11656
Allow TextChannel.delete_messages to take lists of 0 or 1 element.
2017-06-29 14:06:12 -04:00
Rapptz
f4e01b3a92
Make supported operations stand out more than attributes.
2017-05-20 02:08:34 -04:00
Rapptz
f73eb087c9
Use describe instead of tables for supported operations.
2017-05-13 18:48:14 -04:00
Rapptz
cf2269fdf4
Fix some left over incorrect snippets.
2017-05-12 21:12:28 -04:00
Rapptz
b44bba6ee6
First pass at documentation reform.
2017-05-12 20:14:34 -04:00
Rapptz
be2e706b2a
Rename abc.Callable to abc.Connectable.
2017-05-10 21:36:49 -04:00
Rapptz
dff6bcc745
Add support for audit log reasons.
...
Most routes now have a 'reason' keyword argument.
2017-05-07 03:08:06 -04:00
Rapptz
3f45db5c3b
Better TextChannel.is_nsfw() check.
2017-04-30 02:53:33 -04:00
Rapptz
d3a86a5fb6
Add TextChannel.is_nsfw method to check for NSFW channels.
2017-04-26 21:02:30 -04:00
Rapptz
1fc08bc5a2
Remove unused imports.
2017-04-18 04:22:35 -04:00
Rapptz
3b1b26ffb1
Re-implement voice sending.
...
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.
2017-04-18 03:49:48 -04:00
Rapptz
39d65305a3
Add TextChannel.members to get members that can see a channel.
2017-02-28 17:42:07 -05:00
Rapptz
cf40e94af6
Rename VoiceChannel.voice_members to VoiceChannel.members
2017-02-28 17:40:17 -05:00