Rapptz
c30ab8a3e5
Fix NameError in Role.edit when moving roles.
2017-04-22 04:47:43 -04:00
Rapptz
fde35848f6
Make Role.members use a list comprehension.
2017-03-25 00:47:51 -04:00
Rapptz
96a43fa9e3
Fix NameError in Role.edit
2017-03-05 06:48:18 -05:00
Rapptz
aa59762c04
Remove extra space.
2017-02-28 17:39:59 -05:00
Rapptz
81baafa1e2
Change Role.is_everyone to Role.is_default.
2017-01-29 20:59:36 -05:00
Rapptz
e77012f4d9
Make all public is_ functions into methods instead of properties.
2017-01-29 20:53:17 -05:00
Rapptz
ff9f5749e1
Update copyright year to 2017.
2017-01-20 23:19:19 -05:00
Rapptz
f4cadaf0cc
Fix bug with GuildChannel.edit and Role.edit with positions.
...
I did not update the HTTP code for these two methods.
2017-01-16 18:19:18 -05:00
Rapptz
7eb73cdc71
Add Role.members to get every member with a role.
2017-01-03 09:52:06 -05:00
Rapptz
dceba9d962
Add useful repr to all data classes.
2017-01-03 09:52:06 -05:00
Rapptz
a7a60e433b
Make roles and guilds stateful.
2017-01-03 09:51:55 -05:00
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
2017-01-03 09:51:54 -05:00
Rapptz
45c729b167
Switch IDs to use int instead of str
2017-01-03 09:51:49 -05:00
Rapptz
044b0824e6
Begin working on the rewrite.
2017-01-03 09:51:47 -05:00
Rapptz
b7c90a5e3d
Fix role comparisons.
...
Fixes #409
2016-12-02 01:28:54 -05:00
Rapptz
13f85b3292
Make Roles totally ordered.
...
This also fixes a bug with Member.top_role that chose the wrong role
should they have the same position.
2016-09-21 04:22:12 -04:00
Rapptz
b6492a4124
Clarify Role.position documentation.
2016-06-01 20:47:33 -04:00
Rapptz
5016f12079
Add Role.server attribute.
...
This breaks events that expected a server parameter for the role events.
2016-06-01 19:27:48 -04:00
Rapptz
196e9463f5
Add Role.mentionable attribute.
2016-04-29 19:29:29 -04:00
Rapptz
abb955fdaa
Add Role.mention property
2016-04-29 07:24:32 -04:00
Khazhismel Kumykov
9f722731dd
Fix typo in Role.created_at
2016-04-09 02:33:09 -04:00
Rapptz
2ef38107d8
Add missing created_at properties for other objects.
...
Such as Channel, PrivateChannel, Object and Role.
2016-03-25 18:30:42 -04:00
Rapptz
8974dffc4e
Change internal update functions to have a leading underscore.
2016-01-11 14:44:13 -05:00
Rapptz
db4cc791dd
Update license of files to 2016.
2016-01-04 22:28:29 -05:00
Rapptz
f1f0e169e4
Add __slots__ where appropriate to data classes.
2015-12-19 06:18:12 -05:00
Rapptz
51d91c2a82
Most data classes now support hashing.
2015-12-17 00:32:54 -05:00
Rapptz
de1c74a399
Make more things into properties.
...
A lot of the expensive getters were transformed into cached properties
instead. A lot of things that were properties were transformed into
properties as well.
2015-12-16 22:03:16 -05:00
Rapptz
9137d92f67
All data classes now support !=, == and str(obj).
2015-12-13 22:53:48 -05:00
Rapptz
d3fac94e21
Fix bug where Role.is_everyone doesn't propagate in GUILD_ROLE_UPDATE.
2015-12-10 00:10:01 -05:00
Rapptz
17171aaa60
Switch to NumPy style documentation.
2015-12-04 23:43:31 -05:00
Rapptz
85ac03a081
Role.is_everyone actually uses the proper check.
2015-11-09 00:33:15 -05:00
Rapptz
a0073c734e
Split data classes into more files.
2015-10-27 16:23:20 -04:00
Rapptz
8b8312608c
Change Colour constants to be class method factories instead.
2015-10-22 22:20:33 -04:00
Rapptz
d2741ca38a
Better detection for the everyone role. Fixes #23 .
2015-10-21 20:27:08 -04:00
Rapptz
a9fd4fc4e3
Better detection for the @everyone role.
2015-10-17 04:13:15 -04:00
Rapptz
ba978cc988
Add Role.managed property.
2015-10-16 23:20:53 -04:00
Rapptz
411b477a02
Separate colour tuple into its own class.
...
Also enumerate all the constant colours that Discord currently
supports.
2015-10-16 07:48:50 -04:00