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
Rapptz
26f5bcd725
Fix bug when permission overwrites could be applied out of order.
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.
9 years ago
Rapptz
18bdd3e7dd
Make PrivateChannel.__str__ more useful for groups.
Also demote is_private to a property instead of a slot.
9 years ago
Rapptz
a128249b63
Add support for different message types and call message.
9 years ago
Rapptz
69c506d7ae
Handle CHANNEL_UPDATE for group direct messages.
9 years ago
Rapptz
ddd3fd0a3d
Begin working on gateway v6 changes.
The first batch of changes are related to channel types and group
direct messages. Support these first so READY begins parsing.
9 years ago
Rapptz
0eccd85711
Add implicit cases to permission resolution in Channel.permissions_for
9 years ago
Rapptz
8b3617111a
Support for v5 Gateway.
9 years ago
Rapptz
08674f115b
Make Channel.overwrites_for return PermissionOverwrite
9 years ago
Rapptz
9a6234961f
Make Channel.changed_roles into an on-the-fly property instead.
9 years ago
Rapptz
e3c4daf717
Add __slots__ for discord.Channel.
Not sure why this was missing.
9 years ago
Rapptz
fe1b5b2941
Add support for voice channel user limits.
9 years ago
Rapptz
9176caa355
Fix Channel.permissions_for to work with the new permission system.
9 years ago
Rapptz
03041bdb0a
Add Channel.overwrites_for function to get allow/deny pairs.
9 years ago
Rapptz
1a98e9235a
Clarify Channel.position documentation.
9 years ago
Rapptz
2ef38107d8
Add missing created_at properties for other objects.
Such as Channel, PrivateChannel, Object and Role.
9 years ago
Rapptz
13f8b972e6
Fix bug where the everyone role was not being properly resolved.
The permissions_for assumed that the everyone role would be the first
element of the permission overwrites but this is not guaranteed so we
have to guarantee it ourselves.
9 years ago
Rapptz
91ac96daef
Add channel specific bitrates.
9 years ago
Rapptz
2d413756b0
Fix PrivateChannel.permissions_for not having self parameter.
9 years ago
Rapptz
855fa7e553
Documentation fixes for Permissions related code.
9 years ago
Rapptz
8974dffc4e
Change internal update functions to have a leading underscore.
9 years ago
Rapptz
db4cc791dd
Update license of files to 2016.
9 years ago
Rapptz
5a1d7a2d94
Change permissions to remove the can_ prefix.
9 years ago
Rapptz
f1f0e169e4
Add __slots__ where appropriate to data classes.
9 years ago
Rapptz
5f4e13df96
Fix Channel.permissions_for attribute error.
9 years ago
Rapptz
51d91c2a82
Most data classes now support hashing.
9 years ago
Rapptz
f484a5c023
Channel.is_default_channel is now a property named is_default.
9 years ago
Rapptz
9137d92f67
All data classes now support !=, == and str(obj).
9 years ago
Rapptz
ab46afee1d
Changed functions that return a constant value into properties.
9 years ago