Rapptz
4aecdea052
Make TextChannel.create_webhook name parameter mandatory.
7 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
7 years ago
Steve C
0e945915b7
Fixes various documentation errors/inconsistencies
Mostly dealing with permissions, also fixes Raw Events inclusion.
7 years ago
Rapptz
1590441dbf
Fix typo in TextChannel.delete_messages documentation.
7 years ago
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.
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
Rapptz
89bbbec37e
Missing name parameter in VoiceChannel.edit documentation.
8 years ago
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
8 years ago
Rapptz
37b0fdb898
Add webhook support.
Allows for usage of either `requests` and `aiohttp` when used in
"Standalone" mode.
Fixes #704
8 years ago
Rapptz
3b3b8a5150
Remove incorrect extraneous usage of reason keyword argument.
Fixes #726
8 years ago
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
8 years ago
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.
8 years ago
Rapptz
6e0902ef57
Implement new-style NSFW channels.
No idea how these will change in the future but this is barebones
enough for now.
8 years ago
Rapptz
3fbeb94cdb
Expose reverse parameter in TextChannel.purge
8 years ago
Rapptz
ea078f1c68
Fix TextChannel.purge not working.
8 years ago
Rapptz
77f04539b1
Typo in docstring for TextChannel.delete_messages
8 years ago
Rapptz
64cba11656
Allow TextChannel.delete_messages to take lists of 0 or 1 element.
8 years ago
Rapptz
f4e01b3a92
Make supported operations stand out more than attributes.
8 years ago
Rapptz
f73eb087c9
Use describe instead of tables for supported operations.
8 years ago
Rapptz
cf2269fdf4
Fix some left over incorrect snippets.
8 years ago
Rapptz
b44bba6ee6
First pass at documentation reform.
8 years ago
Rapptz
be2e706b2a
Rename abc.Callable to abc.Connectable.
8 years ago
Rapptz
dff6bcc745
Add support for audit log reasons.
Most routes now have a 'reason' keyword argument.
8 years ago
Rapptz
3f45db5c3b
Better TextChannel.is_nsfw() check.
8 years ago
Rapptz
d3a86a5fb6
Add TextChannel.is_nsfw method to check for NSFW channels.
8 years ago
Rapptz
1fc08bc5a2
Remove unused imports.
8 years ago
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.
8 years ago
Rapptz
39d65305a3
Add TextChannel.members to get members that can see a channel.
8 years ago
Rapptz
cf40e94af6
Rename VoiceChannel.voice_members to VoiceChannel.members
8 years ago
Rapptz
cbbc75cd8d
Move purge and delete_messages from Messageable.
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.
8 years ago
Rapptz
ae36008279
Fix NameError in GroupChannel.
8 years ago
Rapptz
ca81f0c3fc
Better group DM support.
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
92dd519b1a
Remove _get_guild_id from Messageable ABC.
8 years ago
Rapptz
aae8b783e9
VoiceChannel.voice_members is now computed when needed.
8 years ago
Rapptz
d086b5421d
Fix NameError when dealing with permission resolution.
8 years ago
Rapptz
7431a127cf
Change Messageable channel getter to be a coroutine.
8 years ago
Rapptz
98b981848d
Move message creation to a factory method inside ConnectionState.
8 years ago
Rapptz
d5b616fa11
Rename MessageChannel abc to Messageable.
8 years ago
Rapptz
6709979831
Move GuildChannel over to abc module.
8 years ago
Rapptz
dceba9d962
Add useful repr to all data classes.
8 years ago
Rapptz
79a49f9145
Absolute import some circular dependencies to appease Python 3.4.
8 years ago
Rapptz
59a0df5f98
Rename try_insert_user to store_user
9 years ago
Rapptz
5cb3ad14e8
Make emojis and members stateful.
9 years ago
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
9 years ago
Rapptz
53ab263125
Split channel types.
This splits them into the following:
* DMChannel
* GroupChannel
* VoiceChannel
* TextChannel
This also makes the channels "stateful".
9 years ago
Rapptz
e4b16851bf
Slots use tuples instead now.
9 years ago
Rapptz
45c729b167
Switch IDs to use int instead of str
9 years ago
Rapptz
044b0824e6
Begin working on the rewrite.
9 years ago
Rapptz
c7946606f4
Add Channel.overwrites to get a channel's permission overwrites.
Fixes #414 .
8 years ago