aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove reason keyword argument from message deletion.Rapptz2017-08-151-5/+2
| | | | | | | | | | | Apparently this is unsupported. Affected functions include: * abc.Messageable.send * Message.delete * TextChannel.delete_messages * TextChannel.purge
* Remove GuildChannel.is_defaultSinisterRectus2017-08-081-11/+1
|
* Add documentation examples for AsyncIterator and change_presence.Gorialis2017-08-081-2/+1
|
* Handle everyone role having top priority in permission resolution.Rapptz2017-07-071-2/+13
| | | | | | | | | | | | In Discord, if the @everyone role has an explicit allow but a later role has an explicit deny, the permission is denied rather than allowed despite the fact that on Discord, allows have a higher priority than denies. This is because the @everyone role is supposed to be the first role to be applied, while the rest could be applied in an aggregate fashion. Fixes #630.
* Rename AsyncIterator.get to next to prevent shadowing.Rapptz2017-07-041-1/+1
|
* Allow sending files list smaller than 2 elements in Messageable.sendBeatButton2017-06-071-4/+3
| | | | The previous restriction was unwarranted.
* Support for sending a nonce.Rapptz2017-05-311-4/+8
|
* Force disconnect in abc.Connectable.connect.Rapptz2017-05-131-1/+1
| | | | | Some cases of is_connected is not set so we need to force it to clear it anyway.
* First pass at documentation reform.Rapptz2017-05-121-1/+89
|
* Rename abc.Callable to abc.Connectable.Rapptz2017-05-101-1/+1
|
* Add support for audit log reasons.Rapptz2017-05-071-11/+24
| | | | Most routes now have a 'reason' keyword argument.
* Change some format usage to use %-formatting.Rapptz2017-05-041-1/+1
| | | | | Minor speed increase when we're not doing excessive attribute access or any type of formatting.
* Fix NameError in GuildChannel.changed_rolesRapptz2017-04-221-0/+1
|
* Better handling of VOICE_SERVER_UPDATE.Rapptz2017-04-181-4/+3
| | | | | | This now sort of respects "Awaiting Endpoint..." waiting. I haven't actually tested out this case since it's hard to get it. However this new code does work with the regular connection flow.
* Re-implement voice sending.Rapptz2017-04-181-3/+66
| | | | | | | | | | | | | | | | | | | | 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 support for multiple file attachments.Rapptz2017-04-081-29/+35
| | | | | | | This is a breaking change. No longer does Messageable.send have a filename keyword argument, instead this is all handled through the discord.File model. To upload many files you must specify a list of discord.File objects.
* Removing acking on channels.Rapptz2017-03-181-22/+0
|
* Handle case when guild owner somehow doesn't exist in permissions_forRapptz2017-03-151-1/+2
|
* Add Messageable.ackRapptz2017-02-281-0/+22
|
* Move purge and delete_messages from Messageable.Rapptz2017-02-261-144/+1
| | | | | | 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.
* Fall back to single message delete in Messageable.purgeRapptz2017-02-231-9/+30
| | | | | | Also make it work on user accounts. Fixes #456.
* Fix NameError in GuildChannel.overwrites_forRapptz2017-02-171-2/+2
|
* Add support for limit=None in Messageable.history.Rapptz2017-02-131-1/+3
| | | | Fixes #480.
* Implement utilities for AsyncIterator.Rapptz2017-02-111-1/+1
| | | | Closes #473.
* Fix support for instant invites.Rapptz2017-02-081-0/+68
|
* Make all public is_ functions into methods instead of properties.Rapptz2017-01-291-2/+1
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Fix bug with GuildChannel.edit and Role.edit with positions.Rapptz2017-01-161-3/+3
| | | | I did not update the HTTP code for these two methods.
* Remove _get_guild_id from Messageable ABC.Rapptz2017-01-141-10/+4
|
* Fix documentation to properly use Messageable.sendRapptz2017-01-131-1/+1
|
* Fix NameError inside Messageable.get_messageRapptz2017-01-111-1/+1
|
* Rename NoMoreMessages to NoMoreItems.Rapptz2017-01-111-3/+3
|
* Allow HistoryIterator to be flattened into a list.Rapptz2017-01-111-2/+7
|
* Allow Messageable.send to work with non-truthy types.Rapptz2017-01-091-1/+1
|
* Fix Messageable.typing context manager.Rapptz2017-01-031-2/+1
|
* Fix NameError when dealing with permission resolution.Rapptz2017-01-031-5/+0
|
* Change Messageable channel getter to be a coroutine.Rapptz2017-01-031-7/+9
|
* Move message creation to a factory method inside ConnectionState.Rapptz2017-01-031-11/+9
|
* Rename MessageChannel abc to Messageable.Rapptz2017-01-031-22/+35
|
* Add permission overwrites to GuildChannel.Rapptz2017-01-031-4/+106
|
* Move GuildChannel over to abc module.Rapptz2017-01-031-37/+264
|
* Add delete_after parameter to MessageChannel.sendRapptz2017-01-031-2/+16
|
* Absolute import some circular dependencies to appease Python 3.4.Rapptz2017-01-031-0/+5
|
* Rename MessageChannel.send_message to send and unify interface.Rapptz2017-01-031-62/+37
| | | | This removes MessageChannel.upload.
* Re-add support for embeds.Rapptz2017-01-031-3/+13
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-1/+1
|
* Stateful Message and remove Invite.xkcd since it is removed.Rapptz2017-01-031-0/+123
|
* Add MessageChannel.typing context manager for prolonged typing.Rapptz2017-01-031-0/+15
|
* Split channel types.Rapptz2017-01-031-0/+277
| | | | | | | | | | | This splits them into the following: * DMChannel * GroupChannel * VoiceChannel * TextChannel This also makes the channels "stateful".
* Add some basic ABCs.Rapptz2017-01-031-0/+77