aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* VoiceChannel.voice_members is now computed when needed.Rapptz2017-01-081-5/+13
|
* Fix NameError when dealing with permission resolution.Rapptz2017-01-031-0/+10
|
* Change Messageable channel getter to be a coroutine.Rapptz2017-01-031-0/+3
|
* Move message creation to a factory method inside ConnectionState.Rapptz2017-01-031-5/+5
|
* Rename MessageChannel abc to Messageable.Rapptz2017-01-031-9/+18
|
* Move GuildChannel over to abc module.Rapptz2017-01-031-265/+2
|
* Add useful repr to all data classes.Rapptz2017-01-031-0/+12
|
* Absolute import some circular dependencies to appease Python 3.4.Rapptz2017-01-031-11/+13
|
* Rename try_insert_user to store_userRapptz2017-01-031-2/+2
|
* Make emojis and members stateful.Rapptz2017-01-031-2/+4
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-33/+33
|
* Split channel types.Rapptz2017-01-031-118/+350
| | | | | | | | | | | This splits them into the following: * DMChannel * GroupChannel * VoiceChannel * TextChannel This also makes the channels "stateful".
* Slots use tuples instead now.Rapptz2017-01-031-1/+1
|
* Switch IDs to use int instead of strRapptz2017-01-031-8/+8
|
* Begin working on the rewrite.Rapptz2017-01-031-42/+42
|
* Add Channel.overwrites to get a channel's permission overwrites.Rapptz2016-12-171-0/+28
| | | | Fixes #414.
* Fix bug when permission overwrites could be applied out of order.Rapptz2016-09-101-1/+7
| | | | | | | | | The bug was due to the fact that the way overwrites work is by doing a loop of all the values and then applying deny first and then allow. That way the overwrite is defined if role A and role B deny a permission but role C allows it (and said member has A, B, C roles) then the resolution should allow it rather than deny it regardless of the order of the data it is received in.
* Make PrivateChannel.__str__ more useful for groups.Rapptz2016-07-151-4/+16
| | | | Also demote is_private to a property instead of a slot.
* Add support for different message types and call message.Rapptz2016-07-131-1/+4
|
* Handle CHANNEL_UPDATE for group direct messages.Rapptz2016-07-131-11/+3
|
* Begin working on gateway v6 changes.Rapptz2016-07-131-10/+61
| | | | | The first batch of changes are related to channel types and group direct messages. Support these first so READY begins parsing.
* Add implicit cases to permission resolution in Channel.permissions_forRapptz2016-06-281-0/+19
|
* Support for v5 Gateway.Rapptz2016-06-221-1/+1
|
* Make Channel.overwrites_for return PermissionOverwriteRapptz2016-06-141-10/+11
|